From d09256ec4cdd538d4f2b7cfb42608ec186e1c7c3 Mon Sep 17 00:00:00 2001 From: Delapouite Date: Wed, 21 Mar 2018 07:59:40 +0100 Subject: [PATCH] Add extra_word_chars '-' to css.kak --- rc/base/css.kak | 1 + rc/extra/sass.kak | 1 + rc/extra/scss.kak | 1 + 3 files changed, 3 insertions(+) diff --git a/rc/base/css.kak b/rc/base/css.kak index 2fbb17c5c..ad1dff5db 100644 --- a/rc/base/css.kak +++ b/rc/base/css.kak @@ -70,6 +70,7 @@ hook global WinSetOption filetype=css %[ hook window ModeChange insert:.* -group css-hooks css-filter-around-selections hook window InsertChar \n -group css-indent css-indent-on-new-line hook window InsertChar \} -group css-indent css-indent-on-closing-curly-brace + set-option buffer extra_word_chars '-' ] hook -group css-highlight global WinSetOption filetype=(?!css).* %{ remove-highlighter window/css } diff --git a/rc/extra/sass.kak b/rc/extra/sass.kak index 2c378957e..50edc0a6b 100644 --- a/rc/extra/sass.kak +++ b/rc/extra/sass.kak @@ -55,6 +55,7 @@ hook -group sass-highlight global WinSetOption filetype=sass %{ add-highlighter hook global WinSetOption filetype=sass %{ hook window ModeChange insert:.* -group sass-hooks sass-filter-around-selections hook window InsertChar \n -group sass-indent sass-indent-on-new-line + set-option buffer extra_word_chars '-' } hook -group sass-highlight global WinSetOption filetype=(?!sass).* %{ remove-highlighter window/sass } diff --git a/rc/extra/scss.kak b/rc/extra/scss.kak index 27ede674e..15c3ff84e 100644 --- a/rc/extra/scss.kak +++ b/rc/extra/scss.kak @@ -38,6 +38,7 @@ hook global WinSetOption filetype=scss %[ hook window ModeChange insert:.* -group scss-hooks scss-filter-around-selections hook window InsertChar \n -group scss-indent scss-indent-on-new-line hook window InsertChar \} -group scss-indent scss-indent-on-closing-curly-brace + set-option buffer extra_word_chars '-' ] hook -group scss-highlight global WinSetOption filetype=(?!scss).* %{ remove-highlighter window/scss }