fix(neovim/queries/c_sharp): add offset to endregion and detect statements and comments
This commit is contained in:
parent
a1dcf49602
commit
c0499e58ed
|
@ -5,10 +5,12 @@
|
||||||
(preproc_region) @region_begin
|
(preproc_region) @region_begin
|
||||||
.
|
.
|
||||||
[
|
[
|
||||||
|
(comment)
|
||||||
(declaration)
|
(declaration)
|
||||||
|
(statement)
|
||||||
(type_declaration)
|
(type_declaration)
|
||||||
]*
|
]*
|
||||||
.
|
.
|
||||||
(preproc_endregion) @region_end
|
(preproc_endregion) @region_end (#offset! @region_end 0 0 -1 0)
|
||||||
(#make-range! "fold" @region_begin @region_end)
|
(#make-range! "fold" @region_begin @region_end)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue