dlang-community / SDLang-D

An SDLang (Simple Declarative Language) library for D
http://sdlang.org
Other
120 stars 21 forks source link

Wrong line count for Windows style line breaks #28

Closed s-ludwig closed 9 years ago

s-ludwig commented 9 years ago

From a quick skim over the lexer module, it looks like \r\n is correctly detected, but then after incrementing the line counter only the \r is consumed. This results in line numbers that are off by a factor of two on Windows.