File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,10 @@ syn region shEmbeddedEcho contained matchgroup=shStatement start="\<print\>" ski
190
190
" =====
191
191
if exists (" b:is_kornshell" ) || exists (" b:is_bash" ) || exists (" b:is_posix" )
192
192
syn match shStatement " \< alias\> "
193
- syn region shAlias matchgroup =shStatement start =" \< alias\>\s\+\(\h [-._[:alnum:]]\+\)\@ =" skip =" \\ $" end =" \>\| `"
194
- syn region shAlias matchgroup =shStatement start =" \< alias\>\s\+\(\h [-._[:alnum:]]\+ =\)\@ =" skip =" \\ $" end =" ="
193
+ syn region shAlias matchgroup =shStatement start =" \< alias\>\s\+\(\h [-._[:alnum:]]*\)\@ =" skip =" \\ $" end =" \>\| `"
194
+ syn region shAlias matchgroup =shStatement start =" \< alias\>\s\+\(\h [-._[:alnum:]]*=\)\@ =" skip =" \\ $" end =" ="
195
+ " syn region shAlias matchgroup=shStatement start="\<alias\>\s\+\(\h[-._[:alnum:]]\+\)\@=" skip="\\$" end="\>\|`"
196
+ " syn region shAlias matchgroup=shStatement start="\<alias\>\s\+\(\h[-._[:alnum:]]\+=\)\@=" skip="\\$" end="="
195
197
196
198
" Touch: {{{1
197
199
" =====
@@ -483,7 +485,9 @@ endif
483
485
484
486
" Parameter Dereferencing: {{{1
485
487
" ========================
486
- if ! exists (" g:sh_no_error" ) && ! (exists (" b:is_bash" ) || exists (" b:is_kornshell" ) || exists (" b:is_posix" ))
488
+ " Note: sh04 failure with following line
489
+ " if !exists("g:sh_no_error") && !(exists("b:is_bash") || exists("b:is_kornshell") || exists("b:is_posix"))
490
+ if ! exists (" g:sh_no_error" )
487
491
syn match shDerefWordError " [^}$[~]" contained
488
492
endif
489
493
syn match shDerefSimple " \$\% (\h\w *\|\d\) " nextgroup =@shNoZSList
You can’t perform that action at this time.
0 commit comments