Skip to content

Commit

Permalink
Merge pull request #30 from DrMeepso/patch-1
Browse files Browse the repository at this point in the history
Fix a few issues with ScriptTokenizer.cs
  • Loading branch information
NotNite authored Nov 22, 2024
2 parents 30f7a52 + 0aaa710 commit f0772d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GDWeave/Script/ScriptTokenizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static class ScriptTokenizer {
{"[", TokenType.BracketOpen},
{"]", TokenType.BracketClose},
{"{", TokenType.CurlyBracketOpen},
{"}", TokenType.CurlyBracketOpen},
{"}", TokenType.CurlyBracketClose},

{"(", TokenType.ParenthesisOpen},
{")", TokenType.ParenthesisClose},
Expand Down Expand Up @@ -366,10 +366,10 @@ private static IEnumerable<string> TokenizeString(string text) {
yield return ClearBuilder();
var start = i;
i++;
for (; i < text.Length && text[i] == ' '; i++) ;
for (; i < text.Length && text[i] == '\t'; i++) ;
i--;
yield return "\n";
yield return $"{(i - start) / 4}";
yield return $"{i - start}";
continue;
}
}
Expand Down

0 comments on commit f0772d3

Please sign in to comment.