mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 22:40:12 -04:00
feat(capnp, thrift): add folds, bump lockfile
This commit is contained in:
parent
f826b7af13
commit
d9d8f5eba4
4 changed files with 29 additions and 3 deletions
14
queries/capnp/folds.scm
Normal file
14
queries/capnp/folds.scm
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[
|
||||
(annotation_targets)
|
||||
(const_list)
|
||||
(enum)
|
||||
(interface)
|
||||
(implicit_generics)
|
||||
(generics)
|
||||
(group)
|
||||
(method_parameters)
|
||||
(named_return_types)
|
||||
(struct)
|
||||
(struct_shorthand)
|
||||
(union)
|
||||
] @fold
|
||||
|
|
@ -62,6 +62,8 @@
|
|||
(local_const) @constant
|
||||
(enum_member) @constant
|
||||
|
||||
(void) @constant.builtin
|
||||
|
||||
; Types
|
||||
|
||||
(enum_identifier) @type
|
||||
|
|
@ -88,7 +90,6 @@
|
|||
"extends"
|
||||
"namespace"
|
||||
"using"
|
||||
(void)
|
||||
(annotation_target)
|
||||
] @keyword
|
||||
|
||||
|
|
|
|||
11
queries/thrift/folds.scm
Normal file
11
queries/thrift/folds.scm
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[
|
||||
(annotation)
|
||||
(enum)
|
||||
(senum)
|
||||
(service)
|
||||
(struct)
|
||||
(union)
|
||||
|
||||
(function_parameters)
|
||||
(exception_parameters)
|
||||
] @fold
|
||||
Loading…
Add table
Add a link
Reference in a new issue