mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-06 23:42:55 +02:00
Make syntax more readable
This commit is contained in:
@@ -167,15 +167,15 @@ internal partial class SyntaxHighlighter(ReadOnlyCollection<StatementInformation
|
||||
return result;
|
||||
}
|
||||
|
||||
[GeneratedRegex("^<[a-zA-Z0-9]+")]
|
||||
[GeneratedRegex("^let\\s+[a-zA-Z0-9]+")]
|
||||
private static partial Regex VariableDeclarationRegex();
|
||||
|
||||
[GeneratedRegex("^!<[a-zA-Z0-9]+")]
|
||||
[GeneratedRegex("^global\\s+[a-zA-Z0-9]+")]
|
||||
private static partial Regex GlobalVariableDeclarationRegex();
|
||||
|
||||
[GeneratedRegex(">[a-zA-Z0-9]+")]
|
||||
[GeneratedRegex("\\$\\{[a-zA-Z0-9]+\\}")]
|
||||
private static partial Regex VariableRegex();
|
||||
|
||||
[GeneratedRegex("(?<=(\\v))(.*)(?=\\v)")]
|
||||
private static partial Regex StringColorRegex();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user