mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
feat(thrift): improve queries
This commit is contained in:
parent
17d7cf6f4b
commit
93386fc725
5 changed files with 57 additions and 2 deletions
32
queries/thrift/locals.scm
Normal file
32
queries/thrift/locals.scm
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
(document) @scope
|
||||
(definition) @scope
|
||||
|
||||
[
|
||||
(identifier)
|
||||
(field_type)
|
||||
(custom_type)
|
||||
] @reference
|
||||
(const_value (const_identifier) @reference)
|
||||
|
||||
(annotation_identifier) @definition
|
||||
|
||||
(const (const_identifier) @definition.constant)
|
||||
(enum_member) @definition.constant
|
||||
|
||||
(enum_identifier) @definition.enum
|
||||
|
||||
(field_identifier) @definition.field
|
||||
|
||||
(function_identifier) @definition.function
|
||||
|
||||
(namespace_definition) @definition.namespace
|
||||
|
||||
[
|
||||
(param_identifier)
|
||||
(exception_param_identifier)
|
||||
] @definition.parameter
|
||||
|
||||
[
|
||||
(type_identifier)
|
||||
(exception_identifier)
|
||||
] @definition.type
|
||||
Loading…
Add table
Add a link
Reference in a new issue