diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-07-24 18:34:39 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-07-24 19:14:02 +0200 |
commit | 50fe19860cf143de939671926118ba0cf8c9f35c (patch) | |
tree | fc6de748e66b7f54b90384e78228f9ff5d6a0363 /parser | |
parent | 5cb19c0df3f838965c1100731f9118f28f50796f (diff) |
Correct source range handling
Diffstat (limited to 'parser')
-rw-r--r-- | parser/CC/Parser.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/CC/Parser.hs b/parser/CC/Parser.hs index d9e5b40..856a7b9 100644 --- a/parser/CC/Parser.hs +++ b/parser/CC/Parser.hs @@ -131,4 +131,4 @@ whitespace = void (many (char ' ')) getPosition :: Parser SourcePos getPosition = do pos <- Text.Parsec.getPosition - return (SourcePos (sourceLine pos) (sourceColumn pos)) + return (SourcePos (sourceLine pos - 1) (sourceColumn pos - 1)) |