hare.vim

[vim] Hare vim plugin
git clone https://git.torresjrjr.com/hare.vim.git
Log | Files | Refs | README | LICENSE

commit 143767535988f1e77ae2090be7812dcc39690dca
parent b8ef2f72ca3f34308b392a9425f3f22ff849cd64
Author: Sebastian <sebastian@sebsite.pw>
Date:   Fri, 15 Apr 2022 18:54:09 -0400

indent: fix indentation of switch/match closing brace

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mindent/hare.vim | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/indent/hare.vim b/indent/hare.vim @@ -108,6 +108,7 @@ function! GetHareIndent() " If the previous line ended in a semicolon and the line before that was a " case, don't do any special indenting. if prevline =~# '\v;\s*(//.*)?$' && prevprevline =~# '\v\=\>\s*(//.*)?$' + \ && line !~# '\v^\s*}' return indent(prevlnum) endif