summary refs log tree commit diff
path: root/bin/hilex
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
commit4d08648d0b9d1589b3205a5fe86d774ebcbac75b (patch)
tree206ae5473bd53e55bd53216b6c9098ac03203ef2 /bin/hilex
parentMatch top-level C definitions as IdentifierTag (diff)
downloadsrc-4d08648d0b9d1589b3205a5fe86d774ebcbac75b.tar.gz
src-4d08648d0b9d1589b3205a5fe86d774ebcbac75b.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 f7370b01..1c703814 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;
 }