mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-24 00:18:12 +00:00
* src/scan-gram.l (code_start): Always initialize it when entering
into yylex, as SC_EPILOGUE is activated *before* the corresponding yylex invocation. An alternative would be making it static, but then it starts with the second %%'s beginning, instead of its end.
This commit is contained in:
1 parent
6d5aa694aa
commit
0433ba88f9
2 files changed
+10
-2
No files matched your search
+3
-2
@@ -138,8 +138,9 @@ splice (\\[ \f\t\v]*\n)*
|
||||
/* Location of most recent identifier, when applicable. */
|
||||
location id_loc IF_LINT (= *loc);
|
||||
|
||||
/* Where containing code started, when applicable. */
|
||||
boundary code_start IF_LINT (= loc->start);
|
||||
/* Where containing code started, when applicable.
|
||||
Once the second %% seen, we are looking for the epilogue. */
|
||||
boundary code_start = loc->end;
|
||||
|
||||
/* Where containing comment or string or character literal started,
|
||||
when applicable. */
|
||||
|
||||
Reference in new issue
Block a user