Skip to content

Commit

Permalink
Fix length calculation of symbol tokens
Browse files Browse the repository at this point in the history
Fixes #44
  • Loading branch information
natefaubion committed May 22, 2022
1 parent 6d3e406 commit 5afff30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PureScript/CST/Lexer.purs
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ bumpToken pos@{ line, column } = case _ of
TokOperator qual sym ->
{ line, column: column + qualLength qual + String.length sym }
TokSymbolName qual sym ->
{ line, column: column + qualLength qual + String.length sym }
{ line, column: column + qualLength qual + String.length sym + 2 }
TokSymbolArrow Unicode ->
{ line, column: column + 1 }
{ line, column: column + 3 }
TokSymbolArrow ASCII ->
{ line, column: column + 4 }
TokHole hole ->
Expand Down

0 comments on commit 5afff30

Please sign in to comment.