From 7d51dca290eea369c5f3a77ae7dca7712479da7f Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Sun, 25 Sep 2016 09:19:04 +0300 Subject: [PATCH] Indent after other keywords --- rc/base/makefile.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/base/makefile.kak b/rc/base/makefile.kak index b168f5d9..08fbdfd0 100644 --- a/rc/base/makefile.kak +++ b/rc/base/makefile.kak @@ -46,8 +46,8 @@ def -hidden _makefile-indent-on-new-line %{ try %{ exec -draft Z k ^[^:]+:\s z i } # cleanup trailing white space son previous line try %{ exec -draft k s \h+$ d } - # indent after ifeq, ifneq, else - try %{ exec -draft Z k ^\h*(ifeq|ifneq|else)\b z } + # indent after some keywords + try %{ exec -draft Z k ^\h*(ifeq|ifneq|ifdef|ifndef|else|define)\b z } } }