Fix being unable to parse files with other line endings
This commit is contained in:
parent
8b30b34bd1
commit
3d40351771
@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text.Json;
|
||||
@ -30,7 +30,8 @@ public class Program
|
||||
}
|
||||
public static void Run(string file, bool debug)
|
||||
{
|
||||
Token[] tokens = new Tokenizer().Tokenize(File.ReadAllText(file));
|
||||
string content = File.ReadAllText(file).ReplaceLineEndings();
|
||||
Token[] tokens = new Tokenizer().Tokenize(content);
|
||||
if(debug)
|
||||
{
|
||||
foreach(Token token in tokens)
|
||||
|
Loading…
x
Reference in New Issue
Block a user