diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2002-12-31 02:26:51 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2002-12-31 02:26:51 +0000 |
commit | 1deb9bdcad4477814ee3d3e569e707b25702688a (patch) | |
tree | 2c84f078518d332688c39355fa55b38291fe6f26 /src | |
parent | 2c09b6a7ea4edd44ec0994373b04c4525f7f7dea (diff) | |
download | bison-1deb9bdcad4477814ee3d3e569e707b25702688a.tar.gz |
src/scan-gram.l (<SC_BRACED_CODE>"}"): Append ";" only in braced code,
not in unions etc.
Diffstat (limited to 'src')
-rw-r--r-- | src/scan-gram.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scan-gram.l b/src/scan-gram.l index a1fbac5e..a2c61fd6 100644 --- a/src/scan-gram.l +++ b/src/scan-gram.l @@ -559,7 +559,7 @@ splice (\\[ \f\t\v]*\n)* should also diagnose other Bison extensions like %yacc. Perhaps there should also be a GCC-style --pedantic-errors option, so that such warnings are diagnosed as errors. */ - if (outer_brace && ! yacc_flag) + if (outer_brace && token_type == BRACED_CODE && ! yacc_flag) obstack_1grow (&obstack_for_string, ';'); obstack_1grow (&obstack_for_string, '}'); |