in triple line string literals the newline should be '\n' too

This commit is contained in:
Araq 2018-01-28 11:38:25 +01:00
commit 7206c692a3

View file

@ -755,7 +755,7 @@ proc getString(L: var TLexer, tok: var TToken, rawMode: bool) =
tokenEndIgnore(tok, pos) tokenEndIgnore(tok, pos)
pos = handleCRLF(L, pos) pos = handleCRLF(L, pos)
buf = L.buf buf = L.buf
add(tok.literal, tnl) add(tok.literal, "\n")
of nimlexbase.EndOfFile: of nimlexbase.EndOfFile:
tokenEndIgnore(tok, pos) tokenEndIgnore(tok, pos)
var line2 = L.lineNumber var line2 = L.lineNumber