Update arithmetics.pegjs

Allow spacing before digits like: "     2 * (3 + 4)"
master
David Berneda 8 years ago committed by GitHub
parent 205c55d309
commit 962db9d090

@ -24,7 +24,7 @@ Factor
/ Integer
Integer "integer"
= [0-9]+ { return parseInt(text(), 10); }
= _ [0-9]+ { return parseInt(text(), 10); }
_ "whitespace"
= [ \t\n\r]*

Loading…
Cancel
Save