diff --git a/rc/base/clojure.kak b/rc/base/clojure.kak index f2e4b0bf..40f43c0d 100644 --- a/rc/base/clojure.kak +++ b/rc/base/clojure.kak @@ -13,11 +13,11 @@ hook global BufCreate .*[.](cljs?) %{ # Highlighters # ‾‾‾‾‾‾‾‾‾‾‾‾ -add-highlighter shared/ group clojure +add-highlighter shared/clojure group -add-highlighter shared/clojure ref lisp +add-highlighter shared/clojure/ ref lisp -add-highlighter shared/clojure regex \b(clojure.core/['/\w]+)\b 0:keyword +add-highlighter shared/clojure/ regex \b(clojure.core/['/\w]+)\b 0:keyword # Commands # ‾‾‾‾‾‾‾‾ @@ -27,7 +27,7 @@ define-command -hidden clojure-indent-on-new-line lisp-indent-on-new-line # Initialization # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ -hook -group clojure-highlight global WinSetOption filetype=clojure %{ add-highlighter window ref clojure } +hook -group clojure-highlight global WinSetOption filetype=clojure %{ add-highlighter window/clojure ref clojure } hook global WinSetOption filetype=clojure %[ hook window ModeChange insert:.* -group clojure-hooks clojure-filter-around-selections diff --git a/rc/base/lisp.kak b/rc/base/lisp.kak index 703a0e00..c2f9621e 100644 --- a/rc/base/lisp.kak +++ b/rc/base/lisp.kak @@ -11,17 +11,15 @@ hook global BufCreate .*[.](lisp) %{ # Highlighters # ‾‾‾‾‾‾‾‾‾‾‾‾ -add-highlighter shared/ regions -default code lisp \ - string '"' (?|<=|=|>=) 0:operator -add-highlighter shared/lisp/code regex \b(([':]\w+)|([*]\H+[*]))\b 0:variable -add-highlighter shared/lisp/code regex \b(def[a-z]+|if|do|let|lambda|catch|and|assert|while|def|do|fn|finally|let|loop|new|quote|recur|set!|throw|try|var|case|if-let|if-not|when|when-first|when-let|when-not|(cond(->|->>)?))\b 0:keyword +add-highlighter shared/lisp/code/ regex \b(nil|true|false)\b 0:value +add-highlighter shared/lisp/code/ regex (((\Q***\E)|(///)|(\Q+++\E)){1,3})|(1[+-])|(<|>|<=|=|>=) 0:operator +add-highlighter shared/lisp/code/ regex \b(([':]\w+)|([*]\H+[*]))\b 0:variable +add-highlighter shared/lisp/code/ regex \b(def[a-z]+|if|do|let|lambda|catch|and|assert|while|def|do|fn|finally|let|loop|new|quote|recur|set!|throw|try|var|case|if-let|if-not|when|when-first|when-let|when-not|(cond(->|->>)?))\b 0:keyword # Commands # ‾‾‾‾‾‾‾‾ @@ -43,7 +41,7 @@ define-command -hidden lisp-indent-on-new-line %{ # Initialization # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ -hook -group lisp-highlight global WinSetOption filetype=lisp %{ add-highlighter window ref lisp } +hook -group lisp-highlight global WinSetOption filetype=lisp %{ add-highlighter window/lisp ref lisp } hook global WinSetOption filetype=lisp %{ hook window ModeChange insert:.* -group lisp-hooks lisp-filter-around-selections diff --git a/rc/core/diff.kak b/rc/core/diff.kak index 1b79d8b9..e8b7c25a 100644 --- a/rc/core/diff.kak +++ b/rc/core/diff.kak @@ -7,5 +7,5 @@ add-highlighter shared/diff/ regex "^\+[^\n]*\n" 0:green,default add-highlighter shared/diff/ regex "^-[^\n]*\n" 0:red,default add-highlighter shared/diff/ regex "^@@[^\n]*@@" 0:cyan,default -hook -group diff-highlight global WinSetOption filetype=diff %{ add-highlighter window ref diff } +hook -group diff-highlight global WinSetOption filetype=diff %{ add-highlighter window/diff ref diff } hook -group diff-highlight global WinSetOption filetype=(?!diff).* %{ remove-highlighter window/diff } diff --git a/rc/core/kakrc.kak b/rc/core/kakrc.kak index 64ddceaa..f0ca884c 100644 --- a/rc/core/kakrc.kak +++ b/rc/core/kakrc.kak @@ -36,7 +36,7 @@ evaluate-commands %sh{ attributes="global buffer window current normal insert menu prompt goto view user object number_lines show_matching show_whitespaces fill regex dynregex group flag_lines - ranges line column wrap ref regions replace-ranges" + ranges line column wrap ref regions region default-region replace-ranges" types="int bool str regex int-list str-list completions line-specs range-specs" values="default black red green yellow blue magenta cyan white yes no false true" diff --git a/rc/core/makefile.kak b/rc/core/makefile.kak index fe8a4267..bf1d79de 100644 --- a/rc/core/makefile.kak +++ b/rc/core/makefile.kak @@ -27,7 +27,7 @@ evaluate-commands %sh{ }" | tr '|' ' ' # Highlight keywords - printf %s "add-highlighter shared/makefile/content regex \b(${keywords})\b 0:keyword" + printf %s "add-highlighter shared/makefile/content/ regex \b(${keywords})\b 0:keyword" } # Commands diff --git a/rc/extra/clang.kak b/rc/extra/clang.kak index 85cbb219..277d4e0d 100644 --- a/rc/extra/clang.kak +++ b/rc/extra/clang.kak @@ -127,7 +127,7 @@ define-command clang-enable-autocomplete -docstring "Enable automatic clang comp } define-command clang-disable-autocomplete -docstring "Disable automatic clang completion" %{ - evaluate-commands %sh{ printf "set-option window completers "; printf %s\\n "'${kak_opt_completers}'" | sed -e "s/'option=clang_completions'//g" } + evaluate-commands %sh{ printf "set-option window completers %s\n" $(printf %s "${kak_opt_completers}" | sed -e "s/'option=clang_completions'//g") } remove-hooks window clang-autocomplete unalias window complete clang-complete } @@ -150,13 +150,13 @@ define-command -hidden clang-show-error-info %{ define-command clang-enable-diagnostics -docstring %{Activate automatic error reporting and diagnostics Information about the analysis are showned after the buffer has been parsed with the clang-parse function} \ %{ - add-highlighter window flag_lines default clang_flags + add-highlighter window/clang_flags flag_lines default clang_flags hook window -group clang-diagnostics NormalIdle .* %{ clang-show-error-info } hook window -group clang-diagnostics WinSetOption ^clang_errors=.* %{ info; clang-show-error-info } } define-command clang-disable-diagnostics -docstring "Disable automatic error reporting and diagnostics" %{ - remove-highlighter window/hlflags_clang_flags + remove-highlighter window/clang_flags remove-hooks window clang-diagnostics } diff --git a/rc/extra/cmake.kak b/rc/extra/cmake.kak index 0dd3835c..a8a77227 100644 --- a/rc/extra/cmake.kak +++ b/rc/extra/cmake.kak @@ -2,21 +2,20 @@ hook global BufCreate .+\.cmake|.*/CMakeLists.txt %{ set-option buffer filetype cmake } -add-highlighter shared/ regions -match-capture -default code cmake \ - comment '#' '$' '' \ - argument '\w+\h*\(\K' '(?=\))' '\(' \ +add-highlighter shared/cmake regions +add-highlighter shared/cmake/code default-region group +add-highlighter shared/cmake/comment region '#' '$' '' fill comment +add-highlighter shared/cmake/argument region '\w+\h*\(\K' '(?=\))' '\(' regions -add-highlighter shared/cmake/argument regions -match-capture -default args argument \ - quoted '"' '(?