summaryrefslogtreecommitdiff
path: root/src/nfa.c
diff options
context:
space:
mode:
authorDemi Obenour <demiobenour@gmail.com>2016-09-27 10:54:16 -0400
committerWill Estes <westes575@gmail.com>2016-10-19 20:39:06 -0400
commit4bffa41e4ed434f1e2ba64ac5a8fe661fa089cfb (patch)
tree378e886700ac96e8c316f354f10e1e9a622144ea /src/nfa.c
parent7dcb10c048744192ab873ee10fb6a5d8b1640434 (diff)
Improved M4 quotation
This fixes M4 quotation of certain strings beginning with `yy` (in section 3 of the input file only) and character literals. The new quotation method is also less brittle and faster. Tests that relied on the old behavior were fixed. Also, `yyconst` is no longer defined; use `const` (which it unconditionally was defined to) instead.
Diffstat (limited to 'src/nfa.c')
-rw-r--r--src/nfa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nfa.c b/src/nfa.c
index 816c356..9143cf6 100644
--- a/src/nfa.c
+++ b/src/nfa.c
@@ -287,6 +287,7 @@ void finish_rule (int mach, int variable_trail_rule, int headcnt, int trailcn
add_action ("YY_RULE_SETUP\n");
line_directive_out(NULL, 1);
+ add_action("[[");
}