1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:08:13 +00:00

LibSyntax: Move GUI::Highlighter to Syntax::Highlighter in LibSyntax

This is a move towards dropping more LibGUI dependencies.
This commit is contained in:
Andreas Kling 2021-02-07 15:15:10 +01:00
parent ff2438e0ce
commit 43c7d7d285
22 changed files with 99 additions and 61 deletions

View file

@ -523,9 +523,9 @@ void ShellSyntaxHighlighter::rehighlight(Gfx::Palette palette)
m_editor->update();
}
Vector<SyntaxHighlighter::MatchingTokenPair> ShellSyntaxHighlighter::matching_token_pairs() const
Vector<Syntax::Highlighter::MatchingTokenPair> ShellSyntaxHighlighter::matching_token_pairs() const
{
static Vector<SyntaxHighlighter::MatchingTokenPair> pairs;
static Vector<Syntax::Highlighter::MatchingTokenPair> pairs;
if (pairs.is_empty()) {
pairs.append({
(void*)static_cast<size_t>(AugmentedTokenKind::OpenParen),