diff options
author | Zahary Karadjov <zahary@gmail.com> | 2012-11-11 16:58:27 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2012-11-11 17:02:13 +0200 |
commit | 32d0ac01dcd5cebfdd1da5182312d308da955837 (patch) | |
tree | 754e166b696987dcceff22a9693722f0b24f81fe /compiler/evals.nim | |
parent | a31a5f9c810948b232356b7fe225b238dad0d6d6 (diff) | |
download | Nim-32d0ac01dcd5cebfdd1da5182312d308da955837.tar.gz |
AST quasi-quoting for macros
Diffstat (limited to 'compiler/evals.nim')
-rwxr-xr-x | compiler/evals.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/evals.nim b/compiler/evals.nim index c6248e823..0d960c952 100755 --- a/compiler/evals.nim +++ b/compiler/evals.nim @@ -898,7 +898,7 @@ proc evalIsOp*(n: PNode): PNode = result.typ = n.typ proc expectString(n: PNode) = - if n.kind notin {nkStrLit, nkRStrLit, nkTripleStrLit}: + if n.kind notin nkStrKinds: GlobalError(n.info, errStringLiteralExpected) proc evalSlurp*(e: PNode, module: PSym): PNode = |