]> git.saurik.com Git - bison.git/commitdiff
* data/c++.m4 (b4_namespace_close): Simplify slightly.
authorJoel E. Denny <jdenny@ces.clemson.edu>
Wed, 20 May 2009 21:14:08 +0000 (17:14 -0400)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Wed, 20 May 2009 22:05:03 +0000 (18:05 -0400)
(cherry picked from commit e7bfa8b7211e2a02f4cec6f122b3141ad2ca97fb)

ChangeLog
data/c++.m4

index 31217ab047a589bfbf7406a21c19f61e70a29a92..029beebb495304a8769bd20071c222664edb4333 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-20  Joel E. Denny  <jdenny@ces.clemson.edu>
+
+       * data/c++.m4 (b4_namespace_close): Simplify slightly.
+
 2009-05-19  Joel E. Denny  <jdenny@ces.clemson.edu>
 
        Handle a trailing `:' in a user-supplied C++ namespace better.
index 22ba5314fd9e683ba6462b5db9257e0c02394635..7590f08a83a54223cab707f975548b7716f37996 100644 (file)
@@ -75,9 +75,9 @@ m4_define([b4_namespace_open],
 m4_define([b4_namespace_close],
 [b4_user_code([b4_percent_define_get_syncline([[namespace]])
 m4_bpatsubst(m4_dquote(m4_bpatsubst(m4_dquote(b4_namespace_ref[ ]),
-                                    [^\(.\)[    ]*\(::\)?\([^][:]\|:[^][:]\)*],
+                                    [^\(.\)[    ]*\(::\)?\([^][:]\|:[^:]\)*],
                                     [\1])),
-             [::\([^][:]\|:[^][:]\)*], [} ])[} // ]b4_namespace_ref])])
+             [::\([^][:]\|:[^:]\)*], [} ])[} // ]b4_namespace_ref])])
 
 
 # b4_token_enums(LIST-OF-PAIRS-TOKEN-NAME-TOKEN-NUMBER)