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;
 }
'/catgirl/commit/window.c?h=2.1&id=3359a5d69b0fe3c08812f7db83e27958ffec820f&follow=1'>Factor out window management to window.cJune McEnroe 2022-02-19Enable -Wmissing-prototypesJune McEnroe 2022-02-19Fix edit.[ch] license notice additional permissionsJune McEnroe 2022-02-19Run line editing testsJune McEnroe 2022-02-18Implement new line editing "library"June McEnroe 2022-02-18Simplify cursor positioning in inputJune McEnroe 2022-02-18Fix M-f orderingJune McEnroe 2022-02-12Move sandman build to scripts/MakefileJune McEnroe 2022-02-12Use compat_readpassphrase.c on LinuxJune McEnroe 2022-02-12Copy RPP defines from oconfigureJune McEnroe