Skip to content

Commit f64dae7

Browse files
authored
for await indent (#656)
#654
1 parent ecc674f commit f64dae7

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
@@ -85,7 +85,7 @@ function s:OneScope(lnum,text)
8585
return cursor(a:lnum, match(' ' . a:text, '\%(\<else\|\<do\|=>\)$')) > -1 ||
8686
\ cursor(a:lnum, match(' ' . a:text, ')$')) > -1 &&
8787
\ s:GetPair('(', ')', 'bW', s:skip_expr, 100) > 0 &&
88-
\ search('\C\<\%(for\%(\_s\+each\)\=\|if\|let\|w\%(hile\|ith\)\)\_s*\%#','bW')
88+
\ search('\C\<\%(for\%(\_s\+\%(await\|each\)\)\=\|if\|let\|w\%(hile\|ith\)\)\_s*\%#','bW')
8989
endfunction
9090

9191
function s:iscontOne(i,num,cont)

0 commit comments

Comments
 (0)