fix tokenizing of numbers and expressions of offset

This commit is contained in:
Ilya Rezvov
2018-03-20 21:33:11 -07:00
parent 3400a7c1ad
commit 682e71defc
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -33,8 +33,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