summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/GML/SyntaxHighlighter.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-04-01 20:58:27 +0300
committerLinus Groh <mail@linusgroh.de>2022-04-01 21:24:45 +0100
commit086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch)
tree02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Libraries/LibGUI/GML/SyntaxHighlighter.cpp
parent0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff)
downloadserenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Libraries/LibGUI/GML/SyntaxHighlighter.cpp')
-rw-r--r--Userland/Libraries/LibGUI/GML/SyntaxHighlighter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/GML/SyntaxHighlighter.cpp b/Userland/Libraries/LibGUI/GML/SyntaxHighlighter.cpp
index 41c9de0446..b6a262f8e5 100644
--- a/Userland/Libraries/LibGUI/GML/SyntaxHighlighter.cpp
+++ b/Userland/Libraries/LibGUI/GML/SyntaxHighlighter.cpp
@@ -11,7 +11,7 @@
namespace GUI::GML {
-static Syntax::TextStyle style_for_token_type(const Gfx::Palette& palette, Token::Type type)
+static Syntax::TextStyle style_for_token_type(Gfx::Palette const& palette, Token::Type type)
{
switch (type) {
case Token::Type::LeftCurly:
@@ -38,7 +38,7 @@ bool SyntaxHighlighter::is_identifier(u64 token) const
return ini_token == Token::Type::Identifier;
}
-void SyntaxHighlighter::rehighlight(const Palette& palette)
+void SyntaxHighlighter::rehighlight(Palette const& palette)
{
auto text = m_client->get_text();
Lexer lexer(text);