0
0
mirror of https://github.com/vim/vim.git synced 2025-10-17 07:44:28 -04:00

runtime(sh): Update syntax file, fix issue #962 (#14138)

Allow the opening parenthesis of a multiline array assignment, within an
if statement, to appear at EOL.

Fixes issue #962.

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
dkearns
2024-03-05 05:14:08 +11:00
committed by GitHub
parent 5131f224da
commit 1bdc9435c1
4 changed files with 62 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/bash
# Issue #962
arr=(
1 2 3 4
) # ok
if true; then
arr=(1 2 3 4) # ok
arr=( 1 2 3 4 ) # ok
arr=(
1 2 3 4
) # paren error!
fi