Commit 56dea5e
Robin Allen
Fix case where line ends with [ within (
The opening square bracket would be treated as if it were an argument to
a function call delimited by the enclosing parentheses.
This adds square brackets to the already-existing special case which
handles braces in this context.
Examples:
1.
var a = [
x
but:
var a = ([
x
2.
var a = fn({ // braces already handled correctly
x: y
but:
var a = fn([
x1 parent ccdf8b7 commit 56dea5e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments