summary refs log tree commit diff
path: root/bin/hilex/c.l
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/c.l
parentMatch top-level C definitions as IdentifierTag (diff)
downloadsrc-4d08648d0b9d1589b3205a5fe86d774ebcbac75b.tar.gz
src-4d08648d0b9d1589b3205a5fe86d774ebcbac75b.zip
Match lex/yacc %% %{ %} lines as Macro
Diffstat (limited to 'bin/hilex/c.l')
-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;
 }
5Day 5June McEnroe 2017-12-04Day 4, part 2June McEnroe That ugly sort map though. 2017-12-04Day 4June McEnroe 2017-12-03Day 3, part 2June McEnroe I am super surprised that worked on the first try. 2017-12-03Day 3, clean upJune McEnroe 2017-12-03Day 3June McEnroe This is fucking awful and I'm angry. 2017-12-02Day 2, part 2June McEnroe 2017-12-02Day 2June McEnroe 2017-12-01Day 1, part 2June McEnroe 2017-12-01Day 1June McEnroe 2017-11-27Move to 2016 directoryJune McEnroe