Instead, package_declaration replaces it. This provides better folding in nvim: otherwise, the final ';' was not part of the tree node, and thus the last line "end P;" was not folded.
15 lines
336 B
Scheme
15 lines
336 B
Scheme
;; Support for folding in Ada
|
|
;; za toggles folding a package, subprogram, if statement or loop
|
|
|
|
[
|
|
(package_declaration)
|
|
(generic_package_declaration)
|
|
(package_body)
|
|
(subprogram_body)
|
|
(block_statement)
|
|
(if_statement)
|
|
(loop_statement)
|
|
(gnatprep_declarative_if_statement)
|
|
(gnatprep_if_statement)
|
|
] @fold
|