From 71e4ac457475b590359c90c436f32197597da897 Mon Sep 17 00:00:00 2001 From: Lennard Hofmann Date: Wed, 15 Jan 2020 13:56:25 +0000 Subject: [PATCH] [sh] Allow hyphens in variables but not every character Co-Authored-By: Frank LENORMAND --- rc/filetype/sh.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/sh.kak b/rc/filetype/sh.kak index bd71acf5..107d6372 100644 --- a/rc/filetype/sh.kak +++ b/rc/filetype/sh.kak @@ -55,7 +55,7 @@ evaluate-commands %sh{ } add-highlighter shared/sh/code/operators regex [\[\]\(\)&|]{1,2} 0:operator -add-highlighter shared/sh/code/variable regex (\S+)= 1:variable +add-highlighter shared/sh/code/variable regex ([\w-]+)= 1:variable add-highlighter shared/sh/code/function regex ^\h*(\w+)\h*\(\) 1:function add-highlighter shared/sh/code/unscoped_expansion regex \$(\w+|#|@|\?|\$|!|-|\*) 0:value