summaryrefslogtreecommitdiff
path: root/www/diffs/sh-vim.diff
diff options
context:
space:
mode:
authorBill <bill@billserver.senders.io>2023-04-01 21:31:09 -0400
committerBill <bill@billserver.senders.io>2023-04-01 21:31:09 -0400
commita0fbc8e612091c3299e193da44e7dde426776dea (patch)
treee5064c26171e0f3bcfa08348e5c32100646b09fc /www/diffs/sh-vim.diff
parent7726e085be032884b855ae20f45a316460f93ec8 (diff)
Commit files after some time
mp3s committed - we likely need to sort those out w/ git
Diffstat (limited to 'www/diffs/sh-vim.diff')
-rw-r--r--www/diffs/sh-vim.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/www/diffs/sh-vim.diff b/www/diffs/sh-vim.diff
new file mode 100644
index 0000000..9a53127
--- /dev/null
+++ b/www/diffs/sh-vim.diff
@@ -0,0 +1,13 @@
+diff --git a/runtime/syntax/sh.vim b/runtime/syntax/sh.vim
+index 13d74dbc1..42151f41b 100644
+--- a/runtime/syntax/sh.vim
++++ b/runtime/syntax/sh.vim
+@@ -335,7 +335,7 @@ syn match shEscape contained '\%(^\)\@!\%(\\\\\)*\\.' nextgroup=shComment
+ " systems too, however, so the following syntax will flag $(..) as
+ " an Error under /bin/sh. By consensus of vimdev'ers!
+ if exists("b:is_kornshell") || exists("b:is_bash") || exists("b:is_posix")
+- syn region shCommandSub matchgroup=shCmdSubRegion start="\$(\ze[^(]\|$" skip='\\\\\|\\.' end=")" contains=@shCommandSubList
++ syn region shCommandSub matchgroup=shCmdSubRegion start="\$(\ze[^(]\?" skip='\\\\\|\\.' end=")" contains=@shCommandSubList
+ syn region shArithmetic matchgroup=shArithRegion start="\$((" skip='\\\\\|\\.' end="))" contains=@shArithList
+ syn region shArithmetic matchgroup=shArithRegion start="\$\[" skip='\\\\\|\\.' end="\]" contains=@shArithList
+ syn match shSkipInitWS contained "^\s\+"