summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-29 17:19:23 -0500
committerJune McEnroe <june@causal.agency>2020-12-29 17:19:23 -0500
commitaeeeeb0370dfd0ef670d7c45af155c3e270a4807 (patch)
tree9ceb76b7ee4c7ba1c7d83f3c70f675c926ece088
parentMatch top-level C definitions as IdentifierTag (diff)
downloadsrc-aeeeeb0370dfd0ef670d7c45af155c3e270a4807.tar.gz
src-aeeeeb0370dfd0ef670d7c45af155c3e270a4807.zip
Match lex/yacc %% %{ %} lines as Macro
Diffstat (limited to '')
-rw-r--r--bin/hilex/c.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/hilex/c.l b/bin/hilex/c.l
index c8f4ba65..985ff513 100644
--- a/bin/hilex/c.l
+++ b/bin/hilex/c.l
@@ -42,7 +42,8 @@ width "*"|[0-9]+
 	BEGIN(pop = MacroDefine);
 	return Macro;
 }
-^[#%][[:blank:]]*{ident} {
+^[#%][[:blank:]]*{ident} |
+^"%"[%{}] {
 	BEGIN(pop = MacroLine);
 	return Macro;
 }