diff options
author | dkearns <dougkearns@gmail.com> | 2024-03-05 05:14:08 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-04 19:14:08 +0100 |
commit | 1bdc9435c1a14ca1a30e5b5927ab63f603ec4409 (patch) | |
tree | 9704f62f51b79407180f146add52cfdd9894254a /runtime/syntax/testdir/input | |
parent | 5131f224da93f2e042a4b22545ef62b1b2ab8460 (diff) |
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>
Diffstat (limited to 'runtime/syntax/testdir/input')
-rwxr-xr-x | runtime/syntax/testdir/input/sh_11.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/runtime/syntax/testdir/input/sh_11.sh b/runtime/syntax/testdir/input/sh_11.sh new file mode 100755 index 0000000000..6e192fc3c4 --- /dev/null +++ b/runtime/syntax/testdir/input/sh_11.sh @@ -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 + |