summaryrefslogtreecommitdiff
path: root/src/highlighter_group.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-06-25 22:04:33 +1000
committerMaxime Coste <mawww@kakoune.org>2018-07-05 07:54:28 +1000
commitb4b335155edbc49a1f787519c08ead72d7cdc8ee (patch)
tree57f0026673d4c42c096388600948f25ccf4a7cc6 /src/highlighter_group.hh
parent18dfecfa9d112e536829aef72b073f276c32dee1 (diff)
Refactor add-highlighter to make naming explicit
The highlighter name must be given as part of the path of the highlighter, as the last element. Fixes #1712
Diffstat (limited to 'src/highlighter_group.hh')
-rw-r--r--src/highlighter_group.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/highlighter_group.hh b/src/highlighter_group.hh
index e2af86ef..357a0501 100644
--- a/src/highlighter_group.hh
+++ b/src/highlighter_group.hh
@@ -21,7 +21,7 @@ public:
HighlighterGroup(HighlightPass passes) : Highlighter{passes} {}
bool has_children() const override { return true; }
- void add_child(HighlighterAndId&& hl) override;
+ void add_child(String name, std::unique_ptr<Highlighter>&& hl) override;
void remove_child(StringView id) override;
Highlighter& get_child(StringView path) override;