Menu

#18 jflex 1.4.3 does not like syntax of HtmlLexer.flex

v0.1.2
open
nobody
None
5
2012-01-05
2012-01-05
No

Building the 0.1.2c flex code with jflex 1.4.3 gives the error:

[INFO] --- maven-jflex-plugin:1.4.3:generate (default) @ hotsax-parser ---

Error in file "/Users/simbo/git/hotsax-parser/hotsax-parser/src/main/jflex/HtmlLexer.flex" (line 381):
Unterminated string at end of line.
[^"]* { string.append(yytext()); }
^

this is solved by changing the following line in the HtmlLexer.flex:

[^"]* { string.append(yytext()); }

to be:

[^\"]* { string.append(yytext()); }

Discussion


Log in to post a comment.

MongoDB Logo MongoDB