summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-02-08 11:22:52 +0100
committerAkim Demaille <akim.demaille@gmail.com>2020-02-08 11:24:53 +0100
commit650b253843727980af2a14e3bc2b667e62d7d0d5 (patch)
treee7bf7d74182028f4f3de17a190f55c5bb6e3354c /data
parent7781254e01506a47b12c0927ac7f7bb6e2ac092a (diff)
downloadbison-650b253843727980af2a14e3bc2b667e62d7d0d5.tar.gz
m4: fix b4_token_format
We used to emit: /** Token number,to be returned by the scanner. */ static final int NUM = 258; /** Token number,to be returned by the scanner. */ static final int NEG = 259; with no space after the comma. Fix that. * data/skeletons/bison.m4 (b4_token_format): Quote where appropriate.
Diffstat (limited to 'data')
-rw-r--r--data/skeletons/bison.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/data/skeletons/bison.m4 b/data/skeletons/bison.m4
index 5c7af1e1..829bee54 100644
--- a/data/skeletons/bison.m4
+++ b/data/skeletons/bison.m4
@@ -532,9 +532,9 @@ m4_define([b4_any_token_visible_if],
# ----------------------------
m4_define([b4_token_format],
[b4_token_visible_if([$2],
-[m4_quote(m4_format([$1],
- [b4_symbol([$2], [id])],
- [b4_symbol([$2], b4_api_token_raw_if([[number]], [[user_number]]))]))])])
+[m4_format([[$1]],
+ m4_quote(b4_symbol([$2], [id])),
+ m4_quote(b4_symbol([$2], b4_api_token_raw_if([[number]], [[user_number]]))))])])
## ------- ##