Skip to content

Commit

Permalink
Merge branch 'main' of github.com:NotNite/GDWeave
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNite committed Dec 3, 2024
2 parents 19fc68d + f0772d3 commit a3cec55
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 a3cec55

Please sign in to comment.