summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Leferry 2 <alexherbo2@gmail.com>2016-02-03 09:12:26 +0100
committerAlex Leferry 2 <alexherbo2@gmail.com>2016-02-03 09:30:11 +0100
commit1aed03aaf9a6ff41b8a3f6bd1ceb2a77d87f72a1 (patch)
tree272785ea0cb1290b7dc9655928c12d1ddf72e39f
parent85383e70836fcdc4741c8e2ce8313cccad33169c (diff)
make auto-indenting after start structure more robust
-rw-r--r--rc/coffee.kak2
1 files changed, 1 insertions, 1 deletions
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 * <ret> y j p }
# indent after start structure
- try %{ exec -draft k x <a-k> ^ \h * (case|catch|class|else|finally|for|function|if|switch|try|while|with) | (->) $ <ret> j <a-gt> }
+ try %{ exec -draft k x <a-k> ^ \h * (case|catch|class|else|finally|for|function|if|switch|try|while|with) \b | (->) $ <ret> j <a-gt> }
}
}