HaxeCheckstyle / haxeparser

A Haxe parser for Haxe
61 stars 23 forks source link

Multiple leading zeros #34

Closed PeyTy closed 7 years ago

PeyTy commented 8 years ago

https://github.com/Simn/haxeparser/blob/master/src/haxeparser/HaxeLexer.hx#L64

I think it's incorrect:

"[0-9]+\\.[0-9]+" => mk(lexer, Const(CFloat(lexer.current))),

It should take only single zero or [1-9][0-9]*. Same stuff for other [0-9]+ cases.