From e8cd33a4108583be101dee0937379d40881d3314 Mon Sep 17 00:00:00 2001 From: Rue <135553058+Ruemena@users.noreply.github.com> Date: Thu, 16 Nov 2023 08:27:09 -0600 Subject: [PATCH] Update Parser.cs --- RueI/RueI/Parsing/Parser.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/RueI/RueI/Parsing/Parser.cs b/RueI/RueI/Parsing/Parser.cs index 5946a7f..b1065ba 100644 --- a/RueI/RueI/Parsing/Parser.cs +++ b/RueI/RueI/Parsing/Parser.cs @@ -1,4 +1,4 @@ -namespace RueI +namespace RueI { using System.Collections.Generic; using System.Collections.ObjectModel; @@ -77,22 +77,23 @@ public ParsedData Parse(string text) void FailTagMatch() // not a tag, unload buffer { this.AvoidMatch(context); + AddCharacter(context, '<') foreach (char ch in tagBuffer.ToString()) { AddCharacter(context, ch); } - foreach (char ch in paramBuffer.ToString()) - { - AddCharacter(context, ch); - } - if (delimiter != null) { AddCharacter(context, delimiter.Value); delimiter = null; } + foreach (char ch in paramBuffer.ToString()) + { + AddCharacter(context, ch); + } + tagBuffer.Clear(); paramBuffer.Clear();