Skip to content

Commit 941b389

Browse files
authored
Merge pull request #619 from pangloss/jsx
react property expressions
2 parents aa5586c + 51035b5 commit 941b389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: indent/javascript.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ endfunction
8484
function s:IsBlock()
8585
return getline(line('.'))[col('.')-1] == '{' && !search(
8686
\ '\C\%(\<return\s*\|\%([-=~!<*+,.?^%|&\[(]\|=\@<!>\|\*\@<!\/\|\<\%(var\|const\|let\|import\|export\%(\_s\+default\)\=\|yield\|delete\|void\|t\%(ypeof\|hrow\)\|new\|in\%(stanceof\)\=\)\)\_s*\)\%#','bnW') &&
87-
\ (!search(':\_s*\%#','bW') || (!s:GetPair('[({[]','[])}]','bW',200) || s:IsBlock()))
87+
\ (!search('[:{]\_s*\%#','bW') || (!s:GetPair('[({[]','[])}]','cbW',200) || s:IsBlock()))
8888
endfunction
8989

9090
" Auxiliary Functions {{{2

0 commit comments

Comments
 (0)