]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(sh) Update sh syntax and add shDblParen to shCaseList (#13469)
authorLucien Grondin <grondilu@yahoo.fr>
Thu, 2 Nov 2023 19:33:56 +0000 (20:33 +0100)
committerGitHub <noreply@github.com>
Thu, 2 Nov 2023 19:33:56 +0000 (20:33 +0100)
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/sh.vim

index d64c3a9b0899012f6c4b5d77157e94dacd59a4d4..0fb10f0e515f4bd5dac5c942f52f471169703445 100644 (file)
@@ -140,7 +140,7 @@ syn cluster shArithList     contains=@shArithParenList,shParenError
 syn cluster shCaseEsacList     contains=shCaseStart,shCaseLabel,shCase,shCaseBar,shCaseIn,shComment,shDeref,shDerefSimple,shCaseCommandSub,shCaseExSingleQuote,shCaseSingleQuote,shCaseDoubleQuote,shCtrlSeq,@shErrorList,shStringSpecial,shCaseRange
 syn cluster shCaseList contains=@shCommandSubList,shCaseEsac,shColon,shCommandSub,shCommandSubBQ,shComment,shDblBrace,shDo,shEcho,shExpr,shFor,shHereDoc,shIf,shHereString,shRedir,shSetList,shSource,shStatement,shVariable,shCtrlSeq
 if exists("b:is_kornshell") || exists("b:is_bash")
- syn cluster shCaseList        add=shForPP
+ syn cluster shCaseList        add=shForPP,shDblParen
 endif
 syn cluster shCommandSubList   contains=shAlias,shArithmetic,shCmdParenRegion,shCommandSub,shComment,shCtrlSeq,shDeref,shDerefSimple,shDoubleQuote,shEcho,shEscape,shExDoubleQuote,shExpr,shExSingleQuote,shHereDoc,shNumber,shOperator,shOption,shPosnParm,shHereString,shRedir,shSingleQuote,shSpecial,shStatement,shSubSh,shTest,shVariable
 syn cluster shCurlyList        contains=shNumber,shComma,shDeref,shDerefSimple,shDerefSpecial