From 7206c692a30dc1fcb0a7627144c888f6307dc1ae Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 28 Jan 2018 11:38:25 +0100 Subject: [PATCH] in triple line string literals the newline should be '\n' too --- compiler/lexer.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/lexer.nim b/compiler/lexer.nim index f703eb3c00..afa7642dc1 100644 --- a/compiler/lexer.nim +++ b/compiler/lexer.nim @@ -755,7 +755,7 @@ proc getString(L: var TLexer, tok: var TToken, rawMode: bool) = tokenEndIgnore(tok, pos) pos = handleCRLF(L, pos) buf = L.buf - add(tok.literal, tnl) + add(tok.literal, "\n") of nimlexbase.EndOfFile: tokenEndIgnore(tok, pos) var line2 = L.lineNumber