From: Vern Paxson Date: Tue, 20 Jun 1989 17:24:13 +0000 (+0000) Subject: changed to not use '|' and trailing context combo X-Git-Tag: flex-2-5-5b~587 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe13f320768a66f6fd732c10db88a519b94a7070;p=flex changed to not use '|' and trailing context combo so users can test using -F ... --- diff --git a/scan.l b/scan.l index 092c028..8c40174 100644 --- a/scan.l +++ b/scan.l @@ -231,7 +231,17 @@ ESCSEQ \\([^\n]|[0-9]{1,3}) ^{OPTWS}"/*" ACTION_ECHO; BEGIN(C_COMMENT_2); -{WS} | +{WS} { + /* this rule is separate from the one below because + * otherwise we get variable trailing context, so + * we can't build the scanner using -{f,F} + */ + bracelevel = 0; + continued_action = false; + BEGIN(ACTION); + return ( '\n' ); + } + {OPTWS}/\n { bracelevel = 0; continued_action = false;