mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-01 11:12:49 +08:00
15 lines
434 B
C#
15 lines
434 B
C#
namespace UnityExplorer.CSConsole.Lexers
|
|
{
|
|
public abstract class Lexer
|
|
{
|
|
public virtual IEnumerable<char> Delimiters => Enumerable.Empty<char>();
|
|
|
|
protected abstract Color HighlightColor { get; }
|
|
|
|
public string ColorTag => colorTag ?? (colorTag = "<color=#" + HighlightColor.ToHex() + ">");
|
|
private string colorTag;
|
|
|
|
public abstract bool TryMatchCurrent(LexerBuilder lexer);
|
|
}
|
|
}
|