From 8dbc86c54a1304917ac9a77daeb60dd44dc78c25 Mon Sep 17 00:00:00 2001 From: Lennard Hofmann Date: Mon, 3 Feb 2020 21:34:36 +0100 Subject: [PATCH] [sh] Do not highlight keywords if preceded/succeeded by a hyphen --- rc/filetype/sh.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/filetype/sh.kak b/rc/filetype/sh.kak index ca80ae1f..f942066d 100644 --- a/rc/filetype/sh.kak +++ b/rc/filetype/sh.kak @@ -48,10 +48,10 @@ evaluate-commands %sh{ printf %s\\n "declare-option str-list sh_static_words $(join "${keywords}" ' ') $(join "${builtins}" ' ')" # Highlight keywords - printf %s\\n "add-highlighter shared/sh/code/ regex \b($(join "${keywords}" '|'))\b 0:keyword" + printf %s\\n "add-highlighter shared/sh/code/ regex (?