summaryrefslogtreecommitdiff
path: root/runtime/syntax/sh.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-27 21:58:42 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-27 21:58:42 +0200
commit818078ddfbb8cc2546f697c5675a251d095722ec (patch)
tree96d4917c3f1631e1a2e6919c6989b5b2fe84d003 /runtime/syntax/sh.vim
parent73d4e4c8922f6f4d256f910a18f47c0c3a48c28b (diff)
downloadvim-818078ddfbb8cc2546f697c5675a251d095722ec.zip
Updated runtime files and translations.
Diffstat (limited to 'runtime/syntax/sh.vim')
-rw-r--r--runtime/syntax/sh.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/syntax/sh.vim b/runtime/syntax/sh.vim
index 2fe13fbde..ef90ebea2 100644
--- a/runtime/syntax/sh.vim
+++ b/runtime/syntax/sh.vim
@@ -2,8 +2,8 @@
" Language: shell (sh) Korn shell (ksh) bash (sh)
" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
" Previous Maintainer: Lennart Schultz <Lennart.Schultz@ecmwf.int>
-" Last Change: Aug 23, 2016
-" Version: 161
+" Last Change: Aug 26, 2016
+" Version: 162
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SH
" For options and settings, please use: :help ft-sh-syntax
" This file includes many ideas from Eric Brunet (eric.brunet@ens.fr)
@@ -500,7 +500,7 @@ syn match shDerefString contained "\\["']" nextgroup=shDerefPattern
if exists("b:is_bash")
" bash : ${parameter:offset}
" bash : ${parameter:offset:length}
- syn region shDerefOff contained start=':' end='\ze:' end='\ze}' contains=shDeref,shDerefSimple,shDerefEscape nextgroup=shDerefLen,shDeref,shDerefSimple
+ syn region shDerefOff contained start=':\ze[^-=?+]' end='\ze:' end='\ze}' contains=shDeref,shDerefSimple,shDerefEscape nextgroup=shDerefLen,shDeref,shDerefSimple
syn region shDerefOff contained start=':\s-' end='\ze:' end='\ze}' contains=shDeref,shDerefSimple,shDerefEscape nextgroup=shDerefLen,shDeref,shDerefSimple
syn match shDerefLen contained ":[^}]\+" contains=shDeref,shDerefSimple