From 78fe69259dd95960c3b00990658d4cacd2f1ec84 Mon Sep 17 00:00:00 2001 From: Tom Burns Date: Tue, 19 Mar 2013 15:26:58 -0400 Subject: [PATCH] Allow floats > 9 --- ext/liquid/liquid_context.leg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/liquid/liquid_context.leg b/ext/liquid/liquid_context.leg index 64067ab..b6b282d 100644 --- a/ext/liquid/liquid_context.leg +++ b/ext/liquid/liquid_context.leg @@ -67,7 +67,7 @@ numeric = float | integer ; -float = <'-'? digit'.'digit+> { $$ = rb_funcall(rb_cObject, rb_intern("Float"), 1, yy_rb_str); } +float = <'-'? digit+'.'digit+> { $$ = rb_funcall(rb_cObject, rb_intern("Float"), 1, yy_rb_str); } integer = <'-'? digit+> { $$ = rb_funcall(rb_cObject, rb_intern("Integer"), 1, yy_rb_str); } @@ -95,4 +95,4 @@ VALUE liquid_context_parse_impl(VALUE self, VALUE text) { yyparse(&ctx); return ctx.rb_tokens; -} \ No newline at end of file +}