We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecc674f commit f64dae7Copy full SHA for f64dae7
indent/javascript.vim
@@ -85,7 +85,7 @@ function s:OneScope(lnum,text)
85
return cursor(a:lnum, match(' ' . a:text, '\%(\<else\|\<do\|=>\)$')) > -1 ||
86
\ cursor(a:lnum, match(' ' . a:text, ')$')) > -1 &&
87
\ s:GetPair('(', ')', 'bW', s:skip_expr, 100) > 0 &&
88
- \ search('\C\<\%(for\%(\_s\+each\)\=\|if\|let\|w\%(hile\|ith\)\)\_s*\%#','bW')
+ \ search('\C\<\%(for\%(\_s\+\%(await\|each\)\)\=\|if\|let\|w\%(hile\|ith\)\)\_s*\%#','bW')
89
endfunction
90
91
function s:iscontOne(i,num,cont)
0 commit comments