Skip to content

Commit 8996ec5

Browse files
authored
date, cleaning
1 parent 579997a commit 8996ec5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

indent/javascript.vim

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Language: Javascript
33
" Maintainer: Chris Paul ( https://github.com/bounceme )
44
" URL: https://github.com/pangloss/vim-javascript
5-
" Last Change: October 24, 2016
5+
" Last Change: October 29, 2016
66

77
" Only load this indent file when no other was loaded.
88
if exists('b:did_indent')
@@ -139,9 +139,8 @@ function s:IsBlock()
139139
elseif char == ':'
140140
return cursor(0,match(' ' . strpart(getline('.'),0,col('.')),'.*\zs' . s:expr_case . '$')) + 1 &&
141141
\ (expand('<cword>') !=# 'default' || !search('\S','bW') || getline('.')[col('.')-1] !~ '[,{]')
142-
else
143-
return stridx('-=~!<*+,/?^%|&([',char) < 0
144142
endif
143+
return stridx('-=~!<*+,/?^%|&([',char) < 0
145144
endif
146145
return 1
147146
endfunction

0 commit comments

Comments
 (0)