Skip to content

Commit b16fc98

Browse files
author
Lucien Grondin
authored
runtime(sh): Update sh syntax and add local keyword for bash (#13806)
add `local` in shStatement Signed-off-by: Lucien Grondin <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent d08059a commit b16fc98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/syntax/sh.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ elseif exists("b:is_bash")
620620
syn keyword shStatement bg builtin disown export false fg getopts jobs let printf sleep true unalias
621621
syn keyword shStatement typeset nextgroup=shSetOption
622622
syn keyword shStatement fc hash history source suspend times type
623-
syn keyword shStatement bind builtin caller compopt declare dirs disown enable export help logout mapfile popd pushd readarray shopt source typeset
623+
syn keyword shStatement bind builtin caller compopt declare dirs disown enable export help logout local mapfile popd pushd readarray shopt source typeset
624624
else
625625
syn keyword shStatement login newgrp
626626
endif

0 commit comments

Comments
 (0)