tr macros now documented
This commit is contained in:
parent
6d94e45902
commit
92b449562e
14 changed files with 332 additions and 18 deletions
|
|
@ -146,7 +146,7 @@ proc matches(c: PPatternContext, p, n: PNode): bool =
|
|||
case opr
|
||||
of "|": result = matchChoice(c, p, n)
|
||||
of "*": result = matchNested(c, p, n, rpn=false)
|
||||
of "*|": result = matchNested(c, p, n, rpn=true)
|
||||
of "**": result = matchNested(c, p, n, rpn=true)
|
||||
of "~": result = not matches(c, p.sons[1], n)
|
||||
else: InternalError(p.info, "invalid pattern")
|
||||
# template {add(a, `&` * b)}(a: string{noalias}, b: varargs[string]) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue