summary refs log tree commit diff stats
path: root/compiler/lexer.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-05-18 15:18:00 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-05-18 15:18:00 +0200
commita4e2b0c1538134ebf105b669da13db13b5356998 (patch)
tree66f0d4c5a827082aad44b9048fe43f1a4875b1de /compiler/lexer.nim
parentb2c7910fb60528520d71686ac7c80a30553f9320 (diff)
downloadNim-a4e2b0c1538134ebf105b669da13db13b5356998.tar.gz
platform.nim doesn't use globals anymore; prepare msgs.nim for not using globals
Diffstat (limited to 'compiler/lexer.nim')
-rw-r--r--compiler/lexer.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/lexer.nim b/compiler/lexer.nim
index 0a31f8049..cf23c9479 100644
--- a/compiler/lexer.nim
+++ b/compiler/lexer.nim
@@ -630,14 +630,14 @@ proc getEscapedChar(L: var TLexer, tok: var TToken) =
     if L.config.oldNewlines:
       if tok.tokType == tkCharLit:
         lexMessage(L, errGenerated, "\\n not allowed in character literal")
-      add(tok.literal, tnl)
+      add(tok.literal, L.config.target.tnl)
     else:
       add(tok.literal, '\L')
     inc(L.bufpos)
   of 'p', 'P':
     if tok.tokType == tkCharLit:
       lexMessage(L, errGenerated, "\\p not allowed in character literal")
-    add(tok.literal, tnl)
+    add(tok.literal, L.config.target.tnl)
     inc(L.bufpos)
   of 'r', 'R', 'c', 'C':
     add(tok.literal, CR)