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:
parent
31e9fc3cef
commit
0f3aaa0ecd
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user