Allow floats > 9

This commit is contained in:
Tom Burns
2013-03-19 15:26:58 -04:00
parent 56d1913b37
commit 0c6bc2b2a3
+2 -2
View File
@@ -67,7 +67,7 @@ numeric = float
| integer | 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); } 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); yyparse(&ctx);
return ctx.rb_tokens; return ctx.rb_tokens;
} }