diff options
author | June McEnroe <june@causal.agency> | 2020-12-29 17:19:23 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-12-29 17:19:23 -0500 |
commit | aeeeeb0370dfd0ef670d7c45af155c3e270a4807 (patch) | |
tree | 9ceb76b7ee4c7ba1c7d83f3c70f675c926ece088 | |
parent | Match top-level C definitions as IdentifierTag (diff) | |
download | src-aeeeeb0370dfd0ef670d7c45af155c3e270a4807.tar.gz src-aeeeeb0370dfd0ef670d7c45af155c3e270a4807.zip |
Match lex/yacc %% %{ %} lines as Macro
Diffstat (limited to '')
-rw-r--r-- | bin/hilex/c.l | 3 |
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; } |