]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(sh): Update sh syntax and add local keyword for bash (#13806)
authorLucien Grondin <grondilu@yahoo.fr>
Mon, 1 Jan 2024 18:00:41 +0000 (19:00 +0100)
committerGitHub <noreply@github.com>
Mon, 1 Jan 2024 18:00:41 +0000 (19:00 +0100)
add `local` in shStatement

Signed-off-by: Lucien Grondin <grondilu@yahoo.fr>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/sh.vim

index e2b194719701ea98c473c730e6a6c6d83f7f9ed6..a83c020c91c23a5a7b54d995f47a6b18f63b7ede 100644 (file)
@@ -620,7 +620,7 @@ elseif exists("b:is_bash")
  syn keyword shStatement bg builtin disown export false fg getopts jobs let printf sleep true unalias
  syn keyword shStatement typeset nextgroup=shSetOption
  syn keyword shStatement fc hash history source suspend times type
- syn keyword shStatement bind builtin caller compopt declare dirs disown enable export help logout mapfile popd pushd readarray shopt source typeset
+ syn keyword shStatement bind builtin caller compopt declare dirs disown enable export help logout local mapfile popd pushd readarray shopt source typeset
 else
  syn keyword shStatement login newgrp
 endif