Literal square-bracket path segments cannot have ] in them. TODO: Allow escaped path segments.
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@
|
||||
<mu>"false"/[}\s] { return 'BOOLEAN'; }
|
||||
<mu>[0-9]+/[}\s] { return 'INTEGER'; }
|
||||
<mu>[a-zA-Z0-9_$-]+/[=}\s\/.] { return 'ID'; }
|
||||
<mu>\[.*\] { yytext = yytext.substr(1, yyleng-2); return 'ID'; }
|
||||
<mu>\[[^\]]*\] { yytext = yytext.substr(1, yyleng-2); return 'ID'; }
|
||||
<mu>. { return 'INVALID'; }
|
||||
|
||||
<INITIAL,mu><<EOF>> { return 'EOF'; }
|
||||
|
||||
Reference in New Issue
Block a user