From aca984f0003b820f0bbe9531c29bad29bcedd257 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Wed, 2 Nov 2016 18:20:30 +0300 Subject: [PATCH] Highlight variable expansions as values in shell scripts --- 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 7588f679..a2bc73a5 100644 --- a/rc/core/sh.kak +++ b/rc/core/sh.kak @@ -36,7 +36,7 @@ addhl -group /sh/code regex [\[\]\(\)&|]{1,2} 0:operator addhl -group /sh/code regex (\w+)= 1:identifier addhl -group /sh/code regex ^\h*(\w+)\h*\(\) 1:identifier -addhl -group /sh/code regex \$(\w+|\{.+?\}|#|@|\?|\$|!|-|\*) 0:identifier +addhl -group /sh/code regex \$(\w+|\{.+?\}|#|@|\?|\$|!|-|\*) 0:value addhl -group /sh/double_string regex \$(\w+|\{.+?\}) 0:identifier hook -group sh-highlight global WinSetOption filetype=sh %{ addhl ref sh }