diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-01-17 19:58:53 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-01-17 19:58:53 +1100 |
| commit | 0f9e6680e263531a680bb3ec4f0db3fc18df4baa (patch) | |
| tree | 95ad0c5a5b5b11cb0d99edbce19274543d486681 | |
| parent | da8058487b10df8575fb21524e49809518222441 (diff) | |
Support quoted here-documents in sh highlighting
| -rw-r--r-- | rc/core/sh.kak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/core/sh.kak b/rc/core/sh.kak index 53a89ec8..517f6a18 100644 --- a/rc/core/sh.kak +++ b/rc/core/sh.kak @@ -7,7 +7,7 @@ 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/heredoc region -match-capture '<<-?(\w+)' '^\t*(\w+)$' fill string +add-highlighter shared/sh/heredoc region -match-capture '<<-?''?(\w+)''?' '^\t*(\w+)$' fill string add-highlighter shared/sh/double_string/fill fill string |
