Skip to content

Commit b5a2110

Browse files
authored
code minify
1 parent 12a6f46 commit b5a2110

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

indent/javascript.vim

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,9 @@ function s:Balanced(lnum)
156156
let pos = match(l:line, '[][(){}]', 0)
157157
while pos != -1
158158
if synIDattr(synID(a:lnum,pos + 1,0),'name') !~? s:syng_strcom
159-
if stridx('[({',l:line[pos]) + 1
160-
let l:open += 1
161-
else
162-
let l:open -= 1
163-
if l:open < 0
164-
return 0
165-
endif
159+
let l:open += match(' ' . l:line[pos],'[[({]')
160+
if l:open < 0
161+
return 0
166162
endif
167163
endif
168164
let pos = match(l:line, '[][(){}]', pos + 1)

0 commit comments

Comments
 (0)