We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fce8e77 commit 5a5cdf0Copy full SHA for 5a5cdf0
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\|import\|export\%(\_s\+default\)\=\|yield\|delete\|void\|t\%(ypeof\|hrow\)\|new\|in\%(stanceof\)\=\)\)\_s*\)\%#','bnW') &&
+ \ '\C\%(\<return\s*\|\%([-=~!<*+,.?^%|&\[(]\|=\@<!>\|\*\@<!\/\|\<\%(var\|const\|let\|import\|export\%(\_s\+default\)\=\|yield\|delete\|void\|t\%(ypeof\|hrow\)\|new\|in\%(stanceof\)\=\)\)\_s*\)\%#','bnW') &&
87
\ (!search('\%({\|:\zs\)\_s*\%#','bW') || search(s:expr_case . '\%#' ,'nbW') || s:IsBlock())
88
endfunction
89
0 commit comments