[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: append-semicolon-to-action backward compatibility patch
From: |
Paul Eggert |
Subject: |
Re: append-semicolon-to-action backward compatibility patch |
Date: |
Mon, 30 Dec 2002 18:30:01 -0800 |
That patch was slightly busted, since it inserted semicolons even for
%union etc. Sorry about that. I installed this further patch.
2002-12-30 Paul Eggert <address@hidden>
* src/scan-gram.l (<SC_BRACED_CODE>"}"): Append ";" only to
braced code, not to unions etc.
--- src/scan-gram.l 30 Dec 2002 23:38:20 -0000 1.53
+++ src/scan-gram.l 31 Dec 2002 02:26:51 -0000 1.54
@@ -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, '}');