tr macros now documented

This commit is contained in:
Araq 2012-09-10 19:34:16 +02:00
commit 92b449562e
14 changed files with 332 additions and 18 deletions

View file

@ -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]) =