Skip to content

Commit 5afff30

Browse files
committed
Fix length calculation of symbol tokens
Fixes #44
1 parent 6d3e406 commit 5afff30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PureScript/CST/Lexer.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ bumpToken pos@{ line, column } = case _ of
293293
TokOperator qual sym ->
294294
{ line, column: column + qualLength qual + String.length sym }
295295
TokSymbolName qual sym ->
296-
{ line, column: column + qualLength qual + String.length sym }
296+
{ line, column: column + qualLength qual + String.length sym + 2 }
297297
TokSymbolArrow Unicode ->
298-
{ line, column: column + 1 }
298+
{ line, column: column + 3 }
299299
TokSymbolArrow ASCII ->
300300
{ line, column: column + 4 }
301301
TokHole hole ->

0 commit comments

Comments
 (0)