From 0f3aaa0ecd281cc932bbb3faed137e8150d0ed79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kruszewski?= Date: Mon, 15 Aug 2022 10:39:13 +0200 Subject: [PATCH] VHDL filetype: Don't increase indent after when in case statement. --- rc/filetype/vhdl.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/filetype/vhdl.kak b/rc/filetype/vhdl.kak index 289a4875..afe0e6b7 100644 --- a/rc/filetype/vhdl.kak +++ b/rc/filetype/vhdl.kak @@ -390,12 +390,12 @@ define-command -hidden vhdl-indent-on-new-line %{ execute-keys -draft ] - # Add "when " and increase indent after "case ... is". + # Add "when " after "case ... is". try %[ execute-keys -draft kx (?i)\h*case\b.*\h+is$ # Don't indent if in comment line. execute-keys -draft kx(?i)^\h*-- - execute-keys -draft iwhen + execute-keys -draft iwhen ] # Copy the indentation of the matching if.