mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
fixes yet another indexing bug caused by the strict strings
This commit is contained in:
@@ -189,7 +189,7 @@ proc putComment(g: var TSrcGen, s: string) =
|
||||
put(g, tkComment, com)
|
||||
com = "## "
|
||||
inc(i)
|
||||
if s[i] == '\x0A': inc(i)
|
||||
if i < s.len and s[i] == '\x0A': inc(i)
|
||||
optNL(g, ind)
|
||||
of '\x0A':
|
||||
put(g, tkComment, com)
|
||||
|
||||
Reference in New Issue
Block a user