diff --git a/src/highlighter_group.hh b/src/highlighter_group.hh index 9f813ccb..7cd525a6 100644 --- a/src/highlighter_group.hh +++ b/src/highlighter_group.hh @@ -19,7 +19,7 @@ class HighlighterGroup : public Highlighter public: void highlight(const Context& context, HighlightFlags flags, DisplayBuffer& display_buffer, BufferRange range) override; - bool has_children() const { return true; } + bool has_children() const override { return true; } void add_child(HighlighterAndId&& hl) override; void remove_child(StringView id) override; diff --git a/src/highlighters.cc b/src/highlighters.cc index 286b22c6..091bbb4e 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -1096,7 +1096,7 @@ public: m_groups.append({m_default_group, HighlighterGroup{}}); } - void highlight(const Context& context, HighlightFlags flags, DisplayBuffer& display_buffer, BufferRange range) + void highlight(const Context& context, HighlightFlags flags, DisplayBuffer& display_buffer, BufferRange range) override { if (flags != HighlightFlags::Highlight) return;