mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
Notes:
sideshowbarker
2024-07-17 16:21:09 +09:00
Author: https://github.com/IdanHo
Commit: 086969277e
Pull-request: https://github.com/SerenityOS/serenity/pull/12321
Reviewed-by: https://github.com/BertalanD
Reviewed-by: https://github.com/bgianfo ✅
1665 changed files with 8479 additions and 8479 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue