Add shebang parsing (read: ignore shebang)
This commit is contained in:
parent
1646a79055
commit
ec312b3132
@ -12,6 +12,10 @@ class Tokenizer
|
||||
|
||||
public Token[] Tokenize(string content)
|
||||
{
|
||||
if(content.StartsWith("#!"))
|
||||
{
|
||||
content = content[content.IndexOf('\n')..];
|
||||
}
|
||||
while(index < content.Length)
|
||||
{
|
||||
TokenizeChar(content[index]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user