fix(neovim/queries/c_sharp): add offset to endregion and detect statements and comments

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2025-02-12 22:06:18 -03:00
parent a1dcf49602
commit c0499e58ed
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -5,10 +5,12 @@
(preproc_region) @region_begin
.
[
(comment)
(declaration)
(statement)
(type_declaration)
]*
.
(preproc_endregion) @region_end
(preproc_endregion) @region_end (#offset! @region_end 0 0 -1 0)
(#make-range! "fold" @region_begin @region_end)
)