1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-28 01:00:28 +03:00

Don't use hook_param_capture_1

This commit is contained in:
Jan-Jaap Korpershoek 2020-11-09 09:53:10 +01:00
parent bbdcc5fdec
commit 93e85bebbb

View File

@ -5,18 +5,18 @@ hook global WinCreate .*\.svelte %[
hook global WinSetOption filetype=(svelte) %{ hook global WinSetOption filetype=(svelte) %{
require-module html require-module html
hook window ModeChange pop:insert:.* -group "%val{hook_param_capture_1}-trim-indent" html-trim-indent hook window ModeChange pop:insert:.* -group "svelte-trim-indent" html-trim-indent
hook window InsertChar '>' -group "%val{hook_param_capture_1}-indent" html-indent-on-greater-than hook window InsertChar '>' -group "svelte-indent" html-indent-on-greater-than
hook window InsertChar \n -group "%val{hook_param_capture_1}-indent" html-indent-on-new-line hook window InsertChar \n -group "svelte-indent" html-indent-on-new-line
hook -once -always window WinSetOption "filetype=.*" " hook -once -always window WinSetOption "filetype=.*" "
remove-hooks window ""%val{hook_param_capture_1}-.+"" remove-hooks window ""svelte-.+""
" "
} }
hook -group svelte-highlight global WinSetOption filetype=(svelte) %{ hook -group svelte-highlight global WinSetOption filetype=(svelte) %{
add-highlighter "window/%val{hook_param_capture_1}" ref html add-highlighter "window/svelte" ref html
hook -once -always window WinSetOption "filetype=.*" " hook -once -always window WinSetOption "filetype=.*" "
remove-highlighter ""window/%val{hook_param_capture_1}"" remove-highlighter ""window/svelte""
" "
} }