From 484353f6a9117a5ee929e0f28581aca557cf3568 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Wed, 3 Mar 2021 13:30:41 +0200 Subject: [PATCH] Adjusted column number to be a little closer to home (might change later when I try to make column numbers more accurate) --- source/tlang/compiler/lexer.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/tlang/compiler/lexer.d b/source/tlang/compiler/lexer.d index 5dd86df..c9a5a19 100644 --- a/source/tlang/compiler/lexer.d +++ b/source/tlang/compiler/lexer.d @@ -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()