Merge remote-tracking branch 'm-kru/vhdl_end_protected_body'
This commit is contained in:
commit
f150bbd54a
|
@ -232,6 +232,13 @@ define-command -hidden vhdl-insert-on-new-line %[
|
||||||
execute-keys -draft o<c-r>xend<space>protected<semicolon><esc>
|
execute-keys -draft o<c-r>xend<space>protected<semicolon><esc>
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
# Wisely add "end protected body;".
|
||||||
|
evaluate-commands %[
|
||||||
|
try %[
|
||||||
|
execute-keys -draft k<a-x> <a-k>^(?i)(\h*type\h+\w+\h+is\h+protected\h+body$)<ret> }i<a-x> <a-K>^<c-r>x(?i)end\h+protected\h+body\b<ret>
|
||||||
|
execute-keys -draft o<c-r>xend<space>protected<space>body<semicolon><esc>
|
||||||
|
]
|
||||||
|
]
|
||||||
# Wisely add "end record;".
|
# Wisely add "end record;".
|
||||||
evaluate-commands %[
|
evaluate-commands %[
|
||||||
try %[
|
try %[
|
||||||
|
@ -375,7 +382,7 @@ define-command -hidden vhdl-indent-on-new-line %{
|
||||||
|
|
||||||
# Increase indent after some keywords.
|
# Increase indent after some keywords.
|
||||||
try %[
|
try %[
|
||||||
execute-keys -draft k<a-x><a-k> (?i)\b(begin|block|else|for|generate|if|is|loop|process|protected|record|select|then)$ <ret>
|
execute-keys -draft k<a-x><a-k> (?i)\b(begin|block|body|else|for|generate|if|is|loop|process|protected|record|select|then)$ <ret>
|
||||||
# Does not indent if in comment line.
|
# Does not indent if in comment line.
|
||||||
execute-keys -draft k<a-x><a-K>(?i)^\h*--<ret>
|
execute-keys -draft k<a-x><a-K>(?i)^\h*--<ret>
|
||||||
# Handle case line in a bit different way.
|
# Handle case line in a bit different way.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user