]> git.saurik.com Git - bison.git/blobdiff - src/scan-gram.l
* src/scan-gram.l (code_start): Always initialize it when entering
[bison.git] / src / scan-gram.l
index 5f7ac60e73b818c14747619288ec8ace3fc98804..424ae2e9667c6ce844f98c32dd1064474eea32fc 100644 (file)
@@ -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.  */