diff --git a/.gitignore b/.gitignore index 9e2fd85..088a244 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ nimcache nakefile test/tests +test/tests.exe +test/tests.pdb +test/tests.ilk diff --git a/src/yaml/private/lexer.nim b/src/yaml/private/lexer.nim index 99fa1d2..968fd15 100644 --- a/src/yaml/private/lexer.nim +++ b/src/yaml/private/lexer.nim @@ -157,7 +157,7 @@ template yieldError(message: string) {.dirty.} = my.content = "" template handleCR() {.dirty.} = - my.bufpos = lexbase.handleLF(my, my.bufpos + my.charoffset) + my.charlen - + my.bufpos = lexbase.handleCR(my, my.bufpos + my.charoffset) + my.charlen - my.charoffset - 1 my.line.inc() curPos = 0