summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-05-03 00:20:55 -0700
committerOri Bernstein <ori@eigenstate.org>2015-05-03 00:20:55 -0700
commitdfe28e0a978ca1acb738b2718a3ef2bd1617ed9a (patch)
tree4ae5505e5094ade583017c6376f30c806ed344ea /support
parentb769b88bbc3e0ddcef7991e73b2582d472f08d89 (diff)
downloadmc-dfe28e0a978ca1acb738b2718a3ef2bd1617ed9a.tar.gz
Fix deindenting when ']' is on its own.
Diffstat (limited to 'support')
-rw-r--r--support/vim/indent/myr.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/vim/indent/myr.vim b/support/vim/indent/myr.vim
index 024aaef..e888c66 100644
--- a/support/vim/indent/myr.vim
+++ b/support/vim/indent/myr.vim
@@ -69,8 +69,8 @@ function! GetMyrIndent(ln)
\ '\<while\>','\<for\>', '\<match\>',
\ '\<struct\>', '\<union\>',
\ '{', '\[', '^\s*|', '=\s*$']
- let outpat = ['}', '\]', ';;']
- let outalone = ['\<else\>', '\<elif\>.*', '}', '].*', ';;', '|.*']
+ let outpat = ['}', '\].*', ';;']
+ let outalone = ['\<else\>', '\<elif\>.*', '}.*', '].*', ';;', '|.*']
let width = &tabstop
let n_in = s:CountMatches(prevln, ln - i, inpat)