mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +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:
parent
ff2438e0ce
commit
43c7d7d285
Notes:
sideshowbarker
2024-07-18 22:32:34 +09:00
Author: https://github.com/awesomekling
Commit: 43c7d7d285
22 changed files with 99 additions and 61 deletions
|
@ -32,7 +32,7 @@
|
|||
|
||||
namespace GUI {
|
||||
|
||||
static TextStyle style_for_token_type(Gfx::Palette palette, IniToken::Type type)
|
||||
static Syntax::TextStyle style_for_token_type(const Gfx::Palette& palette, IniToken::Type type)
|
||||
{
|
||||
switch (type) {
|
||||
case IniToken::Type::LeftBracket:
|
||||
|
@ -87,7 +87,7 @@ void IniSyntaxHighlighter::rehighlight(Gfx::Palette palette)
|
|||
|
||||
Vector<IniSyntaxHighlighter::MatchingTokenPair> IniSyntaxHighlighter::matching_token_pairs() const
|
||||
{
|
||||
static Vector<SyntaxHighlighter::MatchingTokenPair> pairs;
|
||||
static Vector<MatchingTokenPair> pairs;
|
||||
if (pairs.is_empty()) {
|
||||
pairs.append({ reinterpret_cast<void*>(IniToken::Type::LeftBracket), reinterpret_cast<void*>(IniToken::Type::RightBracket) });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue