shithub: mc

Download patch

ref: dfe28e0a978ca1acb738b2718a3ef2bd1617ed9a
parent: b769b88bbc3e0ddcef7991e73b2582d472f08d89
author: Ori Bernstein <[email protected]>
date: Sat May 2 20:20:55 EDT 2015

Fix deindenting when ']' is on its own.

--- a/support/vim/indent/myr.vim
+++ b/support/vim/indent/myr.vim
@@ -69,8 +69,8 @@
                 \    '\<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)