Skip to content

Commit 71917a7

Browse files
committed
column numbers are always off by 1 due to the way the lexing work; the easiest fix is just to offset this in the reporting
1 parent c6e2d3b commit 71917a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Language/Fortran/Util/Position.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ instance Binary Position
2626
instance NFData Position
2727

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

3131
initPosition :: Position
3232
initPosition = Position

0 commit comments

Comments
 (0)