[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/7] m4: fix b4_token_format
From: |
Akim Demaille |
Subject: |
[PATCH 1/7] m4: fix b4_token_format |
Date: |
Sun, 9 Feb 2020 14:02:21 +0100 |
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.
---
data/skeletons/bison.m4 | 6 +++---
1 file 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]]))))])])
## ------- ##
--
2.25.0
- [PATCH 0/7] Java: add support for parse.error custom|detailed, Akim Demaille, 2020/02/09
- [PATCH 1/7] m4: fix b4_token_format,
Akim Demaille <=
- [PATCH 2/7] java: add support for parse.error=detailed, Akim Demaille, 2020/02/09
- [PATCH 5/7] java: let the Context give access to yyntokens, Akim Demaille, 2020/02/09
- [PATCH 4/7] java: make the syntax error format string translatable, Akim Demaille, 2020/02/09
- [PATCH 3/7] java: introduce yyexpectedTokens, Akim Demaille, 2020/02/09
- [PATCH 6/7] java: add support for parse.error custom, Akim Demaille, 2020/02/09
- [PATCH 7/7] java: provide Context with a more OO interface, Akim Demaille, 2020/02/09