fix a regression in tlexerex
This commit is contained in:
parent
8cb11aac4f
commit
8b63b84924
2 changed files with 14 additions and 14 deletions
|
|
@ -1,8 +1,7 @@
|
|||
|
||||
import macros
|
||||
|
||||
macro match*(s: cstring|string; pos: int; sections: untyped): untyped =
|
||||
for sec in sections.children:
|
||||
macro match*(s: cstring|string; pos: int; sections: varargs[untyped]): untyped =
|
||||
for sec in sections:
|
||||
expectKind sec, nnkOfBranch
|
||||
expectLen sec, 2
|
||||
result = newStmtList()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue