runtime(sh): add shDblParen to shLoopList for bash (#13445)

Commit: 
https://github.com/vim/vim/commit/a390e984db20575dc726b4e0ebf95582265df8e7
Author: Lucien Grondin <[email protected]>
Date:   Sat Oct 28 21:40:48 2023 +0200

    runtime(sh): add shDblParen to shLoopList for bash 
(https://github.com/vim/vim/issues/13445)
    
    add shDblParen to shLoopList to correctly highlight
    arithmetic expressions for Bash and Ksh
    
    This should allow code such as:
    
    ```bash
    declare -i i j
    for i in foo bar
    do ((j = 1 << j))
    done
    ```
    
    Signed-off-by: Lucien Grondin <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/syntax/sh.vim b/runtime/syntax/sh.vim
index 8674ded9e..d64c3a9b0 100644
--- a/runtime/syntax/sh.vim
+++ b/runtime/syntax/sh.vim
@@ -163,7 +163,7 @@ syn cluster shIdList        
contains=shArithmetic,shCommandSub,shCommandSubBQ,shWrapLin
 syn cluster shIfList   
contains=@shLoopList,shDblBrace,shDblParen,shFunctionKey,shFunctionOne,shFunctionTwo
 syn cluster shLoopList 
contains=@shCaseList,@shErrorList,shCaseEsac,shConditional,shDblBrace,shExpr,shFor,shIf,shOption,shSet,shTest,shTestOpr,shTouch
 if exists("b:is_kornshell") || exists("b:is_bash")
- syn cluster shLoopoList       add=shForPP
+ syn cluster shLoopList        add=shForPP,shDblParen
 endif
 syn cluster shPPSLeftList      
contains=shAlias,shArithmetic,shCmdParenRegion,shCommandSub,shCtrlSeq,shDeref,shDerefSimple,shDoubleQuote,shEcho,shEscape,shExDoubleQuote,shExpr,shExSingleQuote,shHereDoc,shNumber,shOperator,shOption,shPosnParm,shHereString,shRedir,shSingleQuote,shSpecial,shStatement,shSubSh,shTest,shVariable
 syn cluster shPPSRightList     
contains=shDeref,shDerefSimple,shEscape,shPosnParm

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1qwpF4-009vIz-8s%40256bit.org.

Raspunde prin e-mail lui