Skip to content

Commit

Permalink
(maybe) fix issue with dta files containing brackets in symbols (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
InvoxiPlayGames authored May 7, 2023
1 parent 8fb34a6 commit 9d837ce
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Assets/Script/DtxCs/DTX.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,17 +304,6 @@ private static void ParseString(string data, DataArray root)
case '\n':
case '\t':
throw new Exception("Whitespace encountered in symbol.");
case '}':
case ')':
case ']':
current.AddNode(DataSymbol.Symbol(tmp_literal));
if (data[i] != current.ClosingChar)
{
throw new Exception("Mismatched brace types encountered.");
}
current = current.Parent;
state = ParseState.whitespace;
break;
case '\'':
current.AddNode(DataSymbol.Symbol(tmp_literal));
state = ParseState.whitespace;
Expand Down

0 comments on commit 9d837ce

Please sign in to comment.