Added detection of EOF in actions.
^"%"[cr]{OPTWS} /* ignore old lex directive */
%t{OPTWS}\n {
- char *malloc();
-
++linenum;
xlation = (int *) malloc( sizeof( int ) * csize );
<ACTION_STRING>\" ACTION_ECHO; BEGIN(ACTION);
<ACTION_STRING>. ACTION_ECHO;
+<ACTION,ACTION_COMMENT,ACTION_STRING><<EOF>> {
+ synerr( "EOF encountered inside an action" );
+ yyterminate();
+ }
+
<SECT2,QUOTE,CCL>{ESCSEQ} {
yylval = myesc( yytext );