Skip to content

Commit

Permalink
column numbers are always off by 1 due to the way the lexing work; th…
Browse files Browse the repository at this point in the history
…e easiest fix is just to offset this in the reporting
  • Loading branch information
dorchard committed Sep 25, 2024
1 parent c6e2d3b commit 71917a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Language/Fortran/Util/Position.hs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ instance Binary Position
instance NFData Position

instance Show Position where
show (Position _ c l _ _) = show l ++ ':' : show c
show (Position _ c l _ _) = show l ++ ':' : show (c - 1)

initPosition :: Position
initPosition = Position
Expand Down

0 comments on commit 71917a7

Please sign in to comment.