]> granicus.if.org Git - flex/commitdiff
fix bug that prevented comments from working properly
authorWill Estes <wlestes@users.sourceforge.net>
Fri, 15 Feb 2008 12:37:35 +0000 (12:37 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Fri, 15 Feb 2008 12:37:35 +0000 (12:37 +0000)
NEWS
parse.y

diff --git a/NEWS b/NEWS
index 4ce56bda549f3355322c9cff8aee3fdb6e2bf441..9b515c2844678908d11ca7fb38e35eac8eb5d293 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,8 +5,11 @@ See the file COPYING for copying conditions.
 
 * version 2.5.35
 
+** fixed bug that prevented flex from accepting certain comments in the
+  scanner file (resolves bugs #1849809 and #1849805)
+
 ** fix bug that prevented headers for all functions from being generated
-(resolves bug #1628314)
+  (resolves bug #1628314)
 
 ** change yy_size_t to be size_t (resolves bug #1849812)
 
diff --git a/parse.y b/parse.y
index 22d5933cf4a463d2a89ab33bb6f3c68a5675989f..871ff7e6b6dbf3fe3a9f627b6c4a66fbef3fc21e 100644 (file)
--- a/parse.y
+++ b/parse.y
@@ -856,8 +856,8 @@ ccl         :  ccl CHAR '-' CHAR
 
             /* Do it again for upper/lowercase */
             if (sf_case_ins() && has_case($2)){
-                $1 = reverse_case ($2);
-                ccladd ($1, reverse_case ($2));
+                $2 = reverse_case ($2);
+                ccladd ($1, $2);
 
                 cclsorted = cclsorted && ($2 > lastchar);
                 lastchar = $2;