diff --git a/indent/javascript.vim b/indent/javascript.vim index 2237b4b..7029ed2 100644 --- a/indent/javascript.vim +++ b/indent/javascript.vim @@ -217,7 +217,7 @@ function s:Balanced(lnum) endif endif let pos = match(l:line, (l:open ? - \ '['.escape(tr(l:line[pos],'({[]})',')}][{(').l:line[pos],']').']' : + \ '['.matchstr(['][','()','{}'],l:line[pos]).']' : \ '[][(){}]'), pos + 1) endwhile return !l:open