Skip to content

Commit 941680e

Browse files
committed
spread operator doesn't change indent (#462)
i don't know if this actually makes very much sense ``` 10 ..toString() ``` is invalid
1 parent a6c58e9 commit 941680e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indent/javascript.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ endfunction
9494
" Regex that defines blocks.
9595
let s:block_regex = '[{([]' . s:line_term
9696

97-
let s:operator_first = s:line_pre . '\%([.,:?]\|\([-/+*]\)\%(\1\|\*\|\/\)\@!\|||\|&&\)'
97+
let s:operator_first = s:line_pre . '\%([,:?]\|\([-/.+*]\)\%(\1\|\*\|\/\)\@!\|||\|&&\)'
9898

9999
let s:var_stmt = s:line_pre . '\%(const\|let\|var\)\s\+\C'
100100

0 commit comments

Comments
 (0)