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>
|
execute-keys -draft <semicolon> <a-gt>
|
||||||
]
|
]
|
||||||
|
|
||||||
# Add "when " and increase indent after "case ... is".
|
# Add "when " after "case ... is".
|
||||||
try %[
|
try %[
|
||||||
execute-keys -draft kx<a-k> (?i)\h*case\b.*\h+is$ <ret>
|
execute-keys -draft kx<a-k> (?i)\h*case\b.*\h+is$ <ret>
|
||||||
# Don't indent if in comment line.
|
# Don't indent if in comment line.
|
||||||
execute-keys -draft kx<a-K>(?i)^\h*--<ret>
|
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.
|
# Copy the indentation of the matching if.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user