Literal square-bracket path segments cannot have ] in them. TODO: Allow escaped path segments.

This commit is contained in:
Yehuda Katz
2011-12-27 01:21:53 -08:00
parent bd0f74fbd9
commit 373d10edb1
3 changed files with 18 additions and 6 deletions
+1 -1
View File
@@ -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'; }