diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-01 20:58:27 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-01 21:24:45 +0100 |
commit | 086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch) | |
tree | 02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Libraries/LibSyntax/Highlighter.h | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Libraries/LibSyntax/Highlighter.h')
-rw-r--r-- | Userland/Libraries/LibSyntax/Highlighter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibSyntax/Highlighter.h b/Userland/Libraries/LibSyntax/Highlighter.h index 984c52857d..e6a2cc487c 100644 --- a/Userland/Libraries/LibSyntax/Highlighter.h +++ b/Userland/Libraries/LibSyntax/Highlighter.h @@ -29,7 +29,7 @@ enum class Language { struct TextStyle { const Gfx::Color color; - const bool bold { false }; + bool const bold { false }; }; class Highlighter { @@ -41,7 +41,7 @@ public: virtual Language language() const = 0; StringView language_string(Language) const; - virtual void rehighlight(const Palette&) = 0; + virtual void rehighlight(Palette const&) = 0; virtual void highlight_matching_token_pair(); virtual bool is_identifier(u64) const { return false; }; @@ -125,7 +125,7 @@ public: private: virtual Vector<GUI::TextDocumentSpan>& spans() override { return m_spans; } - virtual const Vector<GUI::TextDocumentSpan>& spans() const override { return m_spans; } + virtual Vector<GUI::TextDocumentSpan> const& spans() const override { return m_spans; } virtual void set_span_at_index(size_t index, GUI::TextDocumentSpan span) override { m_spans.at(index) = move(span); } virtual String highlighter_did_request_text() const override { return m_text; } |