We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5900fce commit faf8bdaCopy full SHA for faf8bda
1 file changed
indent/javascript.vim
@@ -83,7 +83,7 @@ endfunction
83
" https://github.com/sweet-js/sweet.js/wiki/design#give-lookbehind-to-the-reader
84
function s:IsBlock()
85
return getline(line('.'))[col('.')-1] == '{' && !search(
86
- \ '\C\%(\<return\s*\|\%([-=~!<*+,.?^%|&\[(]\|=\@<!>\|\*\@<!\/\|\<\%(var\|const\|let\|yield\|delete\|void\|t\%(ypeof\|hrow\)\|new\|\<in\%(stanceof\)\=\)\)\_s*\)\%#','bnW') &&
+ \ '\C\%(\<return\s*\|\%([-=~!<*+,.?^%|&\[(]\|=\@<!>\|\*\@<!\/\|\<\%(var\|const\|let\|import\|export\|yield\|delete\|void\|t\%(ypeof\|hrow\)\|new\|\<in\%(stanceof\)\=\)\)\_s*\)\%#','bnW') &&
87
\ (!search(':\_s*\%#','bW') || (!s:GetPair('[({[]','[])}]','bW',200) || s:IsBlock()))
88
endfunction
89
0 commit comments