mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Allow floats > 9
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user