From ca38e103148807c3a4b18f1e0bc36732553fcbd8 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 25 May 2017 19:35:53 +0100 Subject: [PATCH] Make shell variable expansion in "strings" highlighted the same way as in code --- rc/core/sh.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/core/sh.kak b/rc/core/sh.kak index 01482a03..7c74cafa 100644 --- a/rc/core/sh.kak +++ b/rc/core/sh.kak @@ -35,7 +35,7 @@ add-highlighter -group /sh/code regex (\w+)= 1:variable add-highlighter -group /sh/code regex ^\h*(\w+)\h*\(\) 1:variable add-highlighter -group /sh/code regex \$(\w+|\{.+?\}|#|@|\?|\$|!|-|\*) 0:value -add-highlighter -group /sh/double_string regex \$(\w+|\{.+?\}) 0:variable +add-highlighter -group /sh/double_string regex \$(\w+|\{.+?\}) 0:value hook -group sh-highlight global WinSetOption filetype=sh %{ add-highlighter ref sh } hook -group sh-highlight global WinSetOption filetype=(?!sh).* %{ remove-highlighter sh }