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
parent 80caca15bd
commit 7206c692a3

View File

@@ -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