summaryrefslogtreecommitdiffstats
path: root/indent/javascript.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-03-24 16:08:42 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2017-03-24 16:08:42 +0100
commit64938393bd49f459a3c64b8342c714caa836e6b3 (patch)
tree030704090c8c53e0d68894316a73c793b120a6aa /indent/javascript.vim
parent79fce146dd895dafd1fa85c21425ba584a7b7e21 (diff)
downloadvim-polyglot-64938393bd49f459a3c64b8342c714caa836e6b3.tar.gz
vim-polyglot-64938393bd49f459a3c64b8342c714caa836e6b3.zip
Update
Diffstat (limited to 'indent/javascript.vim')
-rw-r--r--indent/javascript.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/indent/javascript.vim b/indent/javascript.vim
index 2237b4b9..7029ed22 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