in triple line string literals the newline should be '\n' too
This commit is contained in:
parent
80caca15bd
commit
7206c692a3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue