From e254d0f2829fe6a55011dca92422851458126c9d Mon Sep 17 00:00:00 2001 From: Felix Krause Date: Tue, 22 Dec 2015 14:13:55 +0100 Subject: [PATCH] Made it work under Windows --- .gitignore | 3 +++ src/yaml/private/lexer.nim | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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