summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Jaap Korpershoek <jjkorpershoek96@gmail.com>2019-01-11 00:02:36 +0100
committerJan-Jaap Korpershoek <jjkorpershoek96@gmail.com>2019-01-11 00:02:36 +0100
commitb306f6aa3740fcd73c9cea69680ca865f758ee3a (patch)
tree494b26c3e822ddf92993047256b19b478deb3281
parent059b086e62e7342ceca49be1808857d7489cae1e (diff)
[Bash] Handle hashtag inside expansion (Fix #2684)
-rw-r--r--rc/core/sh.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/core/sh.kak b/rc/core/sh.kak
index 1c38393c..53a89ec8 100644
--- a/rc/core/sh.kak
+++ b/rc/core/sh.kak
@@ -6,7 +6,7 @@ add-highlighter shared/sh regions
add-highlighter shared/sh/code default-region group
add-highlighter shared/sh/double_string region %{(?<!\\)(?:\\\\)*\K"} %{(?<!\\)(?:\\\\)*"} group
add-highlighter shared/sh/single_string region %{(?<!\\)(?:\\\\)*\K'} %{'} fill string
-add-highlighter shared/sh/comment region '(?<!\$)#' '$' fill comment
+add-highlighter shared/sh/comment region '(?<!\$)(?<!\$\{)#' '$' fill comment
add-highlighter shared/sh/heredoc region -match-capture '<<-?(\w+)' '^\t*(\w+)$' fill string
add-highlighter shared/sh/double_string/fill fill string