diff --git a/rc/filetype/javascript.kak b/rc/filetype/javascript.kak index 5a8d05db..bbea437f 100644 --- a/rc/filetype/javascript.kak +++ b/rc/filetype/javascript.kak @@ -81,7 +81,7 @@ define-command -hidden init-javascript-filetype -params 1 %~ add-highlighter "shared/%arg{1}/comment_line" region // '$' fill comment add-highlighter "shared/%arg{1}/comment" region /\* \*/ fill comment add-highlighter "shared/%arg{1}/shebang" region ^#! $ fill meta - add-highlighter "shared/%arg{1}/division" region '[\w\)\]]\K(/|(\h+/\h+))' '(?=\w)' group # Help Kakoune to better detect /…/ literals + add-highlighter "shared/%arg{1}/division" region '[\w\)\]]\K(/|(\h+/\s+))' '(?=\w)' group # Help Kakoune to better detect /…/ literals add-highlighter "shared/%arg{1}/regex" region / (?][\w:.-]* (?][\w:.-]*(?!\hextends)(?=[\s/>])(?!>\()) (|/>) regions