diff options
Diffstat (limited to 'src/urweb.lex')
-rw-r--r-- | src/urweb.lex | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/urweb.lex b/src/urweb.lex index fa8c5dde..371d69a7 100644 --- a/src/urweb.lex +++ b/src/urweb.lex @@ -172,7 +172,7 @@ cid = [A-Z][A-Za-z0-9_]*; ws = [\ \t\012]; intconst = [0-9]+; realconst = [0-9]+\.[0-9]*; -notags = ([^<{\n(]|(\([^\*]))+; +notags = ([^<{\n(]|(\([^\*<{\n]))+; xcom = ([^\-]|(-[^\-]))+; oint = [0-9][0-9][0-9]; xint = x[0-9a-fA-F][0-9a-fA-F]; @@ -338,6 +338,8 @@ xint = x[0-9a-fA-F][0-9a-fA-F]; <XML> {notags} => (Tokens.NOTAGS (unescape (yypos, yypos + size yytext) yytext, yypos, yypos + size yytext)); +<XML> "(" => (Tokens.NOTAGS ("(", yypos, yypos + size yytext)); + <XML> . => (ErrorMsg.errorAt' (yypos, yypos) ("illegal XML character: \"" ^ yytext ^ "\""); continue ()); |