-
-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(highlights)!: simplify highlights for performance reasons
- Loading branch information
Showing
2 changed files
with
36 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,95 +165,21 @@ module.config.public = { | |
-- highlights only bother with highlighting the brackets and the content within, but not the | ||
-- object containing the TODO item itself. | ||
todo_items = { | ||
undone = { | ||
[""] = "[email protected]", | ||
content = "+@none", | ||
}, | ||
pending = { | ||
[""] = "+@namespace", | ||
content = "+@none", | ||
}, | ||
done = { | ||
[""] = "+@string", | ||
content = "+@none", | ||
}, | ||
on_hold = { | ||
[""] = "[email protected]", | ||
content = "+@none", | ||
}, | ||
cancelled = { | ||
[""] = "+NonText", | ||
content = "+@none", | ||
}, | ||
urgent = { | ||
[""] = "[email protected]", | ||
content = "+@none", | ||
}, | ||
uncertain = { | ||
[""] = "+@boolean", | ||
content = "+@none", | ||
}, | ||
recurring = { | ||
[""] = "+@repeat", | ||
content = "+@none", | ||
}, | ||
undone = "[email protected]", | ||
pending = "+@namespace", | ||
done = "+@string", | ||
on_hold = "[email protected]", | ||
cancelled = "+NonText", | ||
urgent = "[email protected]", | ||
uncertain = "+@boolean", | ||
recurring = "+@repeat", | ||
}, | ||
|
||
-- Highlights for all the possible levels of ordered and unordered lists. | ||
lists = { | ||
unordered = { | ||
["1"] = { | ||
prefix = "[email protected]", | ||
content = "+@none", | ||
}, | ||
["2"] = { | ||
prefix = "[email protected]", | ||
content = "+@none", | ||
}, | ||
["3"] = { | ||
prefix = "[email protected]", | ||
content = "+@none", | ||
}, | ||
["4"] = { | ||
prefix = "[email protected]", | ||
content = "+@none", | ||
}, | ||
["5"] = { | ||
prefix = "[email protected]", | ||
content = "+@none", | ||
}, | ||
["6"] = { | ||
prefix = "[email protected]", | ||
content = "+@none", | ||
}, | ||
}, | ||
unordered = { prefix = "[email protected]" }, | ||
|
||
ordered = { | ||
["1"] = { | ||
prefix = "+@repeat", | ||
content = "+@none", | ||
}, | ||
["2"] = { | ||
prefix = "+@repeat", | ||
content = "+@none", | ||
}, | ||
["3"] = { | ||
prefix = "+@repeat", | ||
content = "+@none", | ||
}, | ||
["4"] = { | ||
prefix = "+@repeat", | ||
content = "+@none", | ||
}, | ||
["5"] = { | ||
prefix = "+@repeat", | ||
content = "+@none", | ||
}, | ||
["6"] = { | ||
prefix = "+@repeat", | ||
content = "+@none", | ||
}, | ||
}, | ||
ordered = { prefix = "+@repeat" }, | ||
}, | ||
|
||
-- Highlights for all the possible levels of quotes. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters