mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 16:53:02 +00:00
* src/scan-gram.l (SC_PROLOGUE): Don't eat characters amongst
['"/] too eagerly. * tests/input.at (Torturing the Scanner): New.
This commit is contained in:
@@ -440,7 +440,7 @@ blanks [ \t\f]+
|
||||
"$"("<".*">")?(-?[0-9]+|"$") { handle_dollar (yytext); }
|
||||
"@"(-?[0-9]+|"$") { handle_at (yytext); }
|
||||
|
||||
[^\[\]$/\'\"@\{\}\n\r]+ YY_OBS_GROW;
|
||||
[^$@\[\]/\'\"\{\}\n\r]+ YY_OBS_GROW;
|
||||
{eols} YY_OBS_GROW; YY_LINES;
|
||||
|
||||
/* A lose $, or /, or etc. */
|
||||
@@ -471,7 +471,7 @@ blanks [ \t\f]+
|
||||
return PROLOGUE;
|
||||
}
|
||||
|
||||
[^\[\]%\n\r]+ YY_OBS_GROW;
|
||||
[^%\[\]/\'\"\n\r]+ YY_OBS_GROW;
|
||||
"%"+[^%\}\n\r]+ YY_OBS_GROW;
|
||||
{eols} YY_OBS_GROW; YY_LINES;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user