summary refs log tree commit diff stats
path: root/compiler/semtempl.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-09-10 19:34:16 +0200
committerAraq <rumpf_a@web.de>2012-09-10 19:34:16 +0200
commit92b449562e4815b69b07e74a4f37ff38e27c6a3d (patch)
tree1d8791285b2fd9a7e5c416bdf8d5f0e798f90510 /compiler/semtempl.nim
parent6d94e4590244fe6174181ca4d0928a06d5c6a257 (diff)
downloadNim-92b449562e4815b69b07e74a4f37ff38e27c6a3d.tar.gz
tr macros now documented
Diffstat (limited to 'compiler/semtempl.nim')
-rwxr-xr-xcompiler/semtempl.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtempl.nim b/compiler/semtempl.nim
index ef935e346..8e36aac20 100755
--- a/compiler/semtempl.nim
+++ b/compiler/semtempl.nim
@@ -491,7 +491,7 @@ proc semPatternBody(c: var TemplCtx, n: PNode): PNode =
       # we interpret `*` and `|` only as pattern operators if they occur in
       # infix notation, so that '`*`(a, b)' can be used for verbatim matching:
       let opr = n.sons[0]
-      if opr.ident.s == "*" or opr.ident.s == "*|":
+      if opr.ident.s == "*" or opr.ident.s == "**":
         result = newNodeI(nkPattern, n.info, n.len)
         result.sons[0] = opr
         result.sons[1] = semPatternBody(c, n.sons[1])