Merge branch 'sh' of http://github.com/Ordoviz/kakoune
This commit is contained in:
commit
4a10cf91e6
|
@ -22,12 +22,14 @@ provide-module sh %§
|
|||
|
||||
add-highlighter shared/sh regions
|
||||
add-highlighter shared/sh/code default-region group
|
||||
add-highlighter shared/sh/arithmetic region -recurse \(.*?\( (\$|(?<=for)\h*)\(\( \)\) group
|
||||
add-highlighter shared/sh/double_string region %{(?<!\\)(?:\\\\)*\K"} %{(?<!\\)(?:\\\\)*"} group
|
||||
add-highlighter shared/sh/single_string region %{(?<!\\)(?:\\\\)*\K'} %{'} fill string
|
||||
add-highlighter shared/sh/expansion region -recurse (?<!\\)(?:\\\\)*\K\$\{ (?<!\\)(?:\\\\)*\K\$\{ \}|\n fill value
|
||||
add-highlighter shared/sh/comment region (?<!\\)(?:\\\\)*(?:^|\h)\K# '$' fill comment
|
||||
add-highlighter shared/sh/heredoc region -match-capture '<<-?\h*''?(\w+)''?' '^\t*(\w+)$' fill string
|
||||
|
||||
add-highlighter shared/sh/arithmetic/expansion ref sh/double_string/expansion
|
||||
add-highlighter shared/sh/double_string/fill fill string
|
||||
|
||||
evaluate-commands %sh{
|
||||
|
@ -62,7 +64,7 @@ add-highlighter shared/sh/code/alias regex \balias(\h+[-+]\w)*\h+([\w-.]+)= 2:va
|
|||
add-highlighter shared/sh/code/function regex ^\h*(\S+)\h*\(\) 1:function
|
||||
|
||||
add-highlighter shared/sh/code/unscoped_expansion regex (?<!\\)(?:\\\\)*\K\$(\w+|#|@|\?|\$|!|-|\*) 0:value
|
||||
add-highlighter shared/sh/double_string/expansion regex (?<!\\)(?:\\\\)*\K\$(\w+|\{.+?\}) 0:value
|
||||
add-highlighter shared/sh/double_string/expansion regex (?<!\\)(?:\\\\)*\K\$(\w+|#|@|\?|\$|!|-|\*|\{.+?\}) 0:value
|
||||
|
||||
# Commands
|
||||
# ‾‾‾‾‾‾‾‾
|
||||
|
|
Loading…
Reference in New Issue
Block a user