@@ -14,6 +14,7 @@
haxe.xml.Check : treat comments the same as PCDATA spaces
haxe.io.BytesData now uses strings instead of arrays for PHP
optimized line calculus from ast position
+ allow identifiers starting with _[0-9]
2008-10-04: 2.01
fixed php.Sys
@@ -159,7 +159,7 @@ let find_line_index idx p =
}
-let ident = ('_'* ['a'-'z'] ['_' 'a'-'z' 'A'-'Z' '0'-'9']* | '_')
+let ident = ('_'* ['a'-'z'] ['_' 'a'-'z' 'A'-'Z' '0'-'9']* | '_' | '_'+ ['0'-'9'] ['_' 'a'-'z' 'A'-'Z' '0'-'9']* )
let idtype = '_'* ['A'-'Z'] ['_' 'a'-'z' 'A'-'Z' '0'-'9']*
rule token = parse