forked from aniani/vim
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>
21 lines
156 B
Bash
Executable File
21 lines
156 B
Bash
Executable File
#!/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
|
|
|