summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJoel E. Denny <jdenny@ces.clemson.edu>2009-05-19 17:51:05 -0400
committerJoel E. Denny <jdenny@ces.clemson.edu>2009-05-19 18:16:08 -0400
commit4977e0a7d945a42012d942e389c8a4bd42929558 (patch)
tree2792b1d8a79d4f5278eba8c9ed4daec2d23568cf /data
parent9b04dad70ab2304d86175b002db6594ec653ae47 (diff)
downloadbison-4977e0a7d945a42012d942e389c8a4bd42929558.tar.gz
Handle a trailing `:' in a user-supplied C++ namespace better.
* data/c++.m4 (b4_namespace_close): Don't let it be printed among the closing braces here. This fix might make the generated code easier to debug, but otherwise it should be insignificant because a trailing `:' is a C++ error already. (cherry picked from commit 8c221795affd367ac106161610d42fc94633e3fd)
Diffstat (limited to 'data')
-rw-r--r--data/c++.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/data/c++.m4 b/data/c++.m4
index c43a4df2..22ba5314 100644
--- a/data/c++.m4
+++ b/data/c++.m4
@@ -74,7 +74,7 @@ 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),
+m4_bpatsubst(m4_dquote(m4_bpatsubst(m4_dquote(b4_namespace_ref[ ]),
[^\(.\)[ ]*\(::\)?\([^][:]\|:[^][:]\)*],
[\1])),
[::\([^][:]\|:[^][:]\)*], [} ])[} // ]b4_namespace_ref])])