mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 21:03:04 +00:00
* src/scan-gram.l: Be robust to BRACED_CODE appearing before any
rule. Reported by Mickael Labau. * tests/input.at (Torturing the Scanner): Test it.
This commit is contained in:
@@ -292,7 +292,7 @@ splice (\\[ \f\t\v]*\n)*
|
||||
|
||||
/* Code in between braces. */
|
||||
"{" {
|
||||
if (current_rule->action)
|
||||
if (current_rule && current_rule->action)
|
||||
grammar_midrule_action ();
|
||||
STRING_GROW;
|
||||
token_type = BRACED_CODE;
|
||||
|
||||
Reference in New Issue
Block a user