changeset 34051:f96f16107d61

runtime(sh): Update sh syntax and add local keyword for bash (#13806) Commit: https://github.com/vim/vim/commit/b16fc9805535dc6eb084142da0c87210fc102494 Author: Lucien Grondin <grondilu@yahoo.fr> Date: Mon Jan 1 19:00:41 2024 +0100 runtime(sh): Update sh syntax and add local keyword for bash (https://github.com/vim/vim/issues/13806) add `local` in shStatement Signed-off-by: Lucien Grondin <grondilu@yahoo.fr> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 01 Jan 2024 19:15:03 +0100
parents 9a90c2cf96ee
children e2e9bb5496a5
files runtime/syntax/sh.vim
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/syntax/sh.vim
+++ b/runtime/syntax/sh.vim
@@ -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