bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [both]: fix-token-decl.patch


From: Marc Autret
Subject: Re: [both]: fix-token-decl.patch
Date: 25 Nov 2001 08:48:58 -0500
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

Index: ChangeLog
===================================================================
RCS file: /cvsroot/bison/bison/ChangeLog,v
retrieving revision 1.173.2.154
diff -u -r1.173.2.154 ChangeLog
--- ChangeLog   2001/11/25 12:57:32     1.173.2.154
+++ ChangeLog   2001/11/25 13:39:06
@@ -1,5 +1,11 @@
 2001-11-25  Marc Autret  <address@hidden>
 
+       * tests/regression.at (Spaces in percent options): New.
+       * src/lex.c (parse_percent_token): Fix.
+       Reported by Hans Aberg.
+
+2001-11-25  Marc Autret  <address@hidden>
+
        * doc/bison.texinfo (Mystery Conflicts): Hint '-v' use.
        From Golubev I. N.
 
Index: src/lex.c
[5~===================================================================
RCS file: /cvsroot/bison/bison/src/lex.c,v
retrieving revision 1.33.2.12
diff -u -r1.33.2.12 lex.c
--- src/lex.c   2001/11/14 14:42:14     1.33.2.12
+++ src/lex.c   2001/11/25 13:39:08
@@ -589,7 +589,7 @@
   /* Where the ARG was found in token_buffer. */
   size_t arg_offset = 0;
 
-  int c = getc (finput);
+  int c = skip_white_space ();
 
   switch (c)
     {
Index: tests/regression.at
===================================================================
RCS file: /cvsroot/bison/bison/tests/regression.at,v
retrieving revision 1.1.2.15
diff -u -r1.1.2.15 regression.at
--- tests/regression.at 2001/11/23 14:03:43     1.1.2.15
+++ tests/regression.at 2001/11/25 13:39:08
@@ -408,6 +408,23 @@
 AT_CLEANUP
 
 
+## -------------------------- ##
+## Spaces in percent options. ##
+## -------------------------- ##
+
+AT_SETUP([Spaces in percent options])
+
+AT_DATA([input.y],
+[[% token foo
+%%
+exp:  {}
+]])
+
+AT_CHECK([bison input.y], [0], [],
+[])
+
+AT_CLEANUP
+
 
 ## --------------------- ##
 ## Invalid CPP headers.  ##


-- 
Marc Autret



reply via email to

[Prev in Thread] Current Thread [Next in Thread]