fix int literals parsing

This commit is contained in:
Ilya Rezvov
2018-04-16 20:00:20 -07:00
parent cb7fee3d45
commit b27a89cc17
+2 -2
View File
@@ -40,8 +40,8 @@ $doublequote = \"
@linecomment = ";;" $linechar* \x0A
@startblockcomment = "(;"
@endblockcomment = ";)"
@num = $digit (\_? $digit*)*
@hexnum = $hexdigit (\_? $hexdigit*)*
@num = $digit (\_? $digit+)*
@hexnum = $hexdigit (\_? $hexdigit+)*
@id = "$" $idchar+
@floatfrac = @num "." (@num)?
@exp = [Ee] $sign? @num