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 | 4d08648d0b9d1589b3205a5fe86d774ebcbac75b (patch) | |
tree | 206ae5473bd53e55bd53216b6c9098ac03203ef2 /bin/hilex | |
parent | Match top-level C definitions as IdentifierTag (diff) | |
download | src-4d08648d0b9d1589b3205a5fe86d774ebcbac75b.tar.gz src-4d08648d0b9d1589b3205a5fe86d774ebcbac75b.zip |
Match lex/yacc %% %{ %} lines as Macro
Diffstat (limited to 'bin/hilex')
-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 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; } |