From 1aed03aaf9a6ff41b8a3f6bd1ceb2a77d87f72a1 Mon Sep 17 00:00:00 2001 From: Alex Leferry 2 Date: Wed, 3 Feb 2016 09:12:26 +0100 Subject: [PATCH] make auto-indenting after start structure more robust --- rc/coffee.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/coffee.kak b/rc/coffee.kak index ed1a042b..2b343086 100644 --- a/rc/coffee.kak +++ b/rc/coffee.kak @@ -66,7 +66,7 @@ def -hidden _coffee_indent_on_new_line %{ # copy '#' comment prefix and following white spaces try %{ exec -draft k x s ^ \h * \K \# \h * y j p } # indent after start structure - try %{ exec -draft k x ^ \h * (case|catch|class|else|finally|for|function|if|switch|try|while|with) | (->) $ j } + try %{ exec -draft k x ^ \h * (case|catch|class|else|finally|for|function|if|switch|try|while|with) \b | (->) $ j } } }