mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-13 23:36:35 +08:00
Namespace cleanup, move some categories out of UI namespace
This commit is contained in:
18
src/CSConsole/Lexers/Lexer.cs
Normal file
18
src/CSConsole/Lexers/Lexer.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user