Adjusted column number to be a little closer to home (might change later when I try to make column numbers more accurate)

This commit is contained in:
Tristan B. Velloza Kildaire 2021-03-03 13:30:41 +02:00
parent 49d0fc0086
commit 484353f6a9
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ public final class Token
override string toString()
{
return token~" at ("~to!(string)(line)~", "~to!(string)(column)~")";
/* TODO (Column number): Don't adjust here, do it maybe in the lexer itself */
return token~" at ("~to!(string)(line)~", "~to!(string)(column-token.length)~")";
}
public string getToken()