Allow floats > 9

This commit is contained in:
Tom Burns
2013-03-19 18:30:09 -04:00
parent afe8474a2b
commit 78fe69259d
+2 -2
View File
@@ -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;
}
}