Skip to content

Commit fcef638

Browse files
authored
missed
1 parent 30dcd71 commit fcef638

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

indent/javascript.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ function s:SearchLoop(pat,flags,expr)
183183
endfunction
184184

185185
function s:ExprCol()
186+
if getline('.')[col('.')-2] == ':'
187+
return 1
188+
endif
186189
let bal = 0
187190
while s:SearchLoop('[{}?:]','bW',s:skip_expr)
188191
if s:LookingAt() == ':'

0 commit comments

Comments
 (0)