Skip to content

Commit

Permalink
Update Parser.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LolaLollipop authored Nov 16, 2023
1 parent da071e8 commit e8cd33a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions RueI/RueI/Parsing/Parser.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace RueI
namespace RueI
{
using System.Collections.Generic;
using System.Collections.ObjectModel;
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit e8cd33a

Please sign in to comment.