mirror of
https://github.com/kemko/liquid.git
synced 2026-01-07 10:45:42 +03: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