aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2025-03-14 23:12:18 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-14 23:12:18 +0000
commitb056ccc1ca95f321310f8f3280cf7a3807cfe1e1 (patch)
tree198a55dda1fab34ab8b7af51894876351528613f
parentblink code when evaluating file (diff)
downloadalive.kak-master.tar.gz
alive.kak-master.zip
basic syntax highlighting for template stringsHEADmaster
Diffstat (limited to '')
-rw-r--r--alive.kak16
1 files changed, 10 insertions, 6 deletions
diff --git a/alive.kak b/alive.kak
index dab1dab..059fd42 100644
--- a/alive.kak
+++ b/alive.kak
@@ -5,12 +5,16 @@ hook global BufCreate .*[.](alv) %{
# Highlighters
-add-highlighter shared/alive regions
-add-highlighter shared/alive/code default-region group
-add-highlighter shared/alive/dstring region '"' (?<!\\)(?:\\\\)*" fill string
-add-highlighter shared/alive/qstring region "'" (?<!\\)(?:\\\\)*' fill string
-add-highlighter shared/alive/comment region -recurse '\(' '#\(' '\)' fill comment
-add-highlighter shared/alive/code/tag regex \[[0-9]+\] 0:rgb:696969
+add-highlighter shared/alive regions
+add-highlighter shared/alive/code default-region group
+add-highlighter shared/alive/dstring region '"' (?<!\\)(?:\\\\)*" fill string
+add-highlighter shared/alive/qstring region "'" (?<!\\)(?:\\\\)*' fill string
+add-highlighter shared/alive/tpl region '#"' '"' regions
+add-highlighter shared/alive/tpl/string default-region fill string
+add-highlighter shared/alive/tpl/expr region -recurse '\(' '#\(' '\)' group
+add-highlighter shared/alive/tpl/expr/tag regex \[[0-9]+\] 0:rgb:696969
+add-highlighter shared/alive/comment region -recurse '\(' '#\(' '\)' fill comment
+add-highlighter shared/alive/code/tag regex \[[0-9]+\] 0:rgb:696969
# Commands