Skip to content

Commit

Permalink
Make tokenizer use tabs and not 4 spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMeepso authored Nov 22, 2024
1 parent 1129ea1 commit 0aaa710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GDWeave/Script/ScriptTokenizer.cs
Original file line number Diff line number Diff line change
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 0aaa710

Please sign in to comment.