1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-25 21:16:38 +03:00

VHDL filetype: Don't increase indent after when in case statement.

This commit is contained in:
Michał Kruszewski 2022-08-15 10:39:13 +02:00
parent 31e9fc3cef
commit 0f3aaa0ecd

View File

@ -390,12 +390,12 @@ define-command -hidden vhdl-indent-on-new-line %{
execute-keys -draft <semicolon> <a-gt>
]
# Add "when " and increase indent after "case ... is".
# Add "when " after "case ... is".
try %[
execute-keys -draft kx<a-k> (?i)\h*case\b.*\h+is$ <ret>
# Don't indent if in comment line.
execute-keys -draft kx<a-K>(?i)^\h*--<ret>
execute-keys -draft <semicolon>iwhen<space><esc><a-gt>
execute-keys -draft <semicolon>iwhen<space><esc>
]
# Copy the indentation of the matching if.