summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/Controllers/HighlightManager.h')
-rw-r--r--Swift/Controllers/HighlightManager.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/Controllers/HighlightManager.h b/Swift/Controllers/HighlightManager.h
index 3da72eb..07a3fe3 100644
--- a/Swift/Controllers/HighlightManager.h
+++ b/Swift/Controllers/HighlightManager.h
@@ -36,4 +36,7 @@ namespace Swift {
list_.insert(list_.end(), rhs.list_.begin(), rhs.list_.end());
}
+ void setRule(const size_t index, const HighlightRule& rule) {
+ list_[index] = rule;
+ }
private:
std::vector<HighlightRule> list_;
@@ -50,4 +53,5 @@ namespace Swift {
void insertRule(int index, const HighlightRule& rule);
void removeRule(int index);
+ void swapRules(const size_t first, const size_t second);
void storeSettings();
void loadSettings();