commit 2500e389a8be4953a7618a531c6cd94bb2cd794c
parent 22e2b66129c6c65025274159dc975d3ca865d57b
Author: Sebastian <sebastian@sebsite.pw>
Date: Thu, 28 Apr 2022 21:31:34 -0400
Correctly indent closing `]`
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/indent/hare.vim b/indent/hare.vim
@@ -27,12 +27,13 @@ setlocal cinoptions=L0,:0,(s,m1,ks,j1,J1,*0,#1
" 0{ -> { at beginning of line
" 0} -> } at beginning of line
" 0) -> ) at beginning of line
+" 0] -> ] at beginning of line
" !^F -> <C-f> (not inserted)
" o -> <CR> or `o` command
" O -> `O` command
" e -> else
" 0=case -> case
-setlocal indentkeys=0{,0},0),!^F,o,O,e,0=case
+setlocal indentkeys=0{,0},0),0],!^F,o,O,e,0=case
setlocal cinwords=if,else,for,switch,match