From 14aea91667f98d52068fb7b13d93d35af7c2d7e6 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Sun, 28 Oct 2018 23:50:44 +0100
Subject: Updated some rules for the opcode generator.

---
 tools/d2c/grammar.y | 6 +++---
 1 file 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
-- 
cgit v0.11.2-87-g4458