.end now needs a whitespace before *and* after.
authorkramm <kramm>
Sat, 20 Nov 2004 16:19:10 +0000 (16:19 +0000)
committerkramm <kramm>
Sat, 20 Nov 2004 16:19:10 +0000 (16:19 +0000)
src/parser.lex

index 43e50fe..337da1e 100644 (file)
@@ -266,7 +266,7 @@ RVALUE       \"{STRING}\"|([^ \n\r\t]+)
 }
 \.include{S}.*\n                   {handleInclude(yytext, yyleng);}
 \.{NAME}                   {s(COMMAND);c();}
-:({NS}|{S}[^.]|{S}\.[^e]|{S}\.e[^n]|{S}\.en[^d])*{S}\.end          {s(RAWDATA);c();}
+:({NS}|{S}[^.]|{S}\.[^e]|{S}\.e[^n]|{S}\.en[^d]|{S}\.end{NS})*{S}\.end     {s(RAWDATA);c();}
 {NAME}                      {s(IDENTIFIER);c();}
 "["                        {c();BEGIN(BINARY);}
 {S}                        {c();}