From 1b0de5776b7d2630e209ee2f32f200a877243868 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Tue, 2 Mar 2021 22:44:24 +0200 Subject: [PATCH] Fixed bug whereby any splitter would result in the addition of the semi-colon, regardless of the splitter character --- source/tlang/commandline/lexer.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/tlang/commandline/lexer.d b/source/tlang/commandline/lexer.d index b498470a..672fff2c 100644 --- a/source/tlang/commandline/lexer.d +++ b/source/tlang/commandline/lexer.d @@ -47,8 +47,8 @@ public final class Lexer currentToken = ""; } - /* Add the ; token */ - currentTokens ~= ";"; + /* Add the splitter token */ + currentTokens ~= ""~currentChar; position++; }