From 601a9ebd0fcab2b7a928ed754c3cffd5ad4a01cb Mon Sep 17 00:00:00 2001 From: kramm Date: Thu, 25 Nov 2004 13:11:45 +0000 Subject: [PATCH] fixed .end problem. --- src/parser.lex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/parser.lex b/src/parser.lex index 337da1e..93ecbc4 100644 --- a/src/parser.lex +++ b/src/parser.lex @@ -244,7 +244,6 @@ NUMBER -?[0-9]+(\.[0-9]*)? PERCENT {NUMBER}% STRING (\\.|[^\\"\n])* S [ \n\r\t] -NS [^ \n\r\t] RVALUE \"{STRING}\"|([^ \n\r\t]+) %% @@ -266,7 +265,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{NS})*{S}\.end {s(RAWDATA);c();} +:([^.]|\.[^e]|\.e[^n]|\.en[^d]|\.end[^ \n\r\t]|[ \n\r\t])*\.end {s(RAWDATA);c();} {NAME} {s(IDENTIFIER);c();} "[" {c();BEGIN(BINARY);} {S} {c();} -- 1.7.10.4