We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 75d0ab5 + b08a850 commit a678c43Copy full SHA for a678c43
templates/wrappers.hs
@@ -154,7 +154,7 @@ alexStartPos :: AlexPosn
154
alexStartPos = AlexPn 0 1 1
155
156
alexMove :: AlexPosn -> Char -> AlexPosn
157
-alexMove (AlexPn a l c) '\t' = AlexPn (a+1) l (((c+alex_tab_size-1) `div` alex_tab_size)*alex_tab_size+1)
+alexMove (AlexPn a l c) '\t' = AlexPn (a+1) l (c+alex_tab_size-((c-1) `mod` alex_tab_size))
158
alexMove (AlexPn a l _) '\n' = AlexPn (a+1) (l+1) 1
159
alexMove (AlexPn a l c) _ = AlexPn (a+1) l (c+1)
160
#endif
0 commit comments