summaryrefslogtreecommitdiff
path: root/tools/d2c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/d2c')
-rw-r--r--tools/d2c/grammar.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/d2c/grammar.y b/tools/d2c/grammar.y
index ad6531a..4444299 100644
--- a/tools/d2c/grammar.y
+++ b/tools/d2c/grammar.y
@@ -153,7 +153,7 @@ static void *map_input_data(const char *, size_t *);
#define handle_coder_hooks(c, r) \
({ \
encoding_spec *__spec; \
- instr_hooks *__hooks;; \
+ instr_hooks *__hooks; \
bool __status; \
__spec = get_current_encoding_spec(c); \
__hooks = get_hooks_in_encoding_spec(__spec); \
@@ -255,8 +255,8 @@ format : FORMAT RAW_LINE { handle_coder_format(coder, $2); }
unused_format : UNUSED RAW_LINE { handle_coder_format(coder, $2); mark_coder_as_useless(coder); }
format_content : /* empty */
- | SYNTAX { push_coder_new_syntax(coder); } format_syntax
- | hooks format_syntax
+ | SYNTAX { push_coder_new_syntax(coder); } format_syntax format_content
+ | hooks format_content
format_syntax : /* empty */
| rules format_syntax