From 75bb796b2bc774992c48660ed7e5c8b28aef6d86 Mon Sep 17 00:00:00 2001 From: Lennard Hofmann Date: Mon, 3 Feb 2020 18:59:46 +0000 Subject: [PATCH] [sh] Allow more characters in aliases and function names Which characters are allowed? - Aliases: https://www.gnu.org/software/bash/manual/html_node/Aliases.html - Functions: https://unix.stackexchange.com/questions/245331/shell-valid-function-name-characters For aliases I chose [\w-.] instead of blacklisting many forbidden characters. For functions I chose \S. --- rc/filetype/sh.kak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rc/filetype/sh.kak b/rc/filetype/sh.kak index 47136952..ca80ae1f 100644 --- a/rc/filetype/sh.kak +++ b/rc/filetype/sh.kak @@ -56,7 +56,8 @@ evaluate-commands %sh{ add-highlighter shared/sh/code/operators regex [\[\]\(\)&|]{1,2} 0:operator add-highlighter shared/sh/code/variable regex ((?