2023-03-12 06:09:35 -04:00
|
|
|
; Scopes
|
2023-02-06 13:34:05 -05:00
|
|
|
[
|
2023-03-12 06:09:35 -04:00
|
|
|
(document)
|
|
|
|
|
(definition)
|
2023-07-22 15:29:32 +02:00
|
|
|
] @local.scope
|
2023-03-12 06:09:35 -04:00
|
|
|
|
|
|
|
|
; References
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.reference
|
2023-03-12 06:09:35 -04:00
|
|
|
|
|
|
|
|
; Definitions
|
2023-07-22 15:29:32 +02:00
|
|
|
(annotation_identifier) @local.definition
|
2023-02-06 13:34:05 -05:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(const_definition
|
|
|
|
|
(identifier) @local.definition.constant)
|
2023-02-06 13:34:05 -05:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(enum_definition
|
|
|
|
|
"enum"
|
|
|
|
|
.
|
|
|
|
|
(identifier) @local.definition.enum
|
|
|
|
|
"{"
|
|
|
|
|
(identifier) @local.definition.constant
|
|
|
|
|
"}")
|
2023-02-06 13:34:05 -05:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(senum_definition
|
|
|
|
|
"senum"
|
|
|
|
|
.
|
|
|
|
|
(identifier) @local.definition.enum)
|
2023-02-06 13:34:05 -05:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(field
|
|
|
|
|
(identifier) @local.definition.field)
|
2023-02-06 13:34:05 -05:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(function_definition
|
|
|
|
|
(identifier) @local.definition.function)
|
2023-02-06 13:34:05 -05:00
|
|
|
|
2023-03-12 06:09:35 -04:00
|
|
|
(namespace_declaration
|
2024-01-06 15:05:50 +09:00
|
|
|
"namespace"
|
|
|
|
|
(namespace_scope)
|
|
|
|
|
.
|
|
|
|
|
(_) @local.definition.namespace
|
2023-03-12 06:09:35 -04:00
|
|
|
(namespace_uri)?)
|
2023-02-06 13:34:05 -05:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(parameter
|
|
|
|
|
(identifier) @local.definition.parameter)
|
2023-03-12 06:09:35 -04:00
|
|
|
|
|
|
|
|
(struct_definition
|
2024-01-06 15:05:50 +09:00
|
|
|
"struct"
|
|
|
|
|
.
|
|
|
|
|
(identifier) @local.definition.type)
|
2023-03-12 06:09:35 -04:00
|
|
|
|
|
|
|
|
(union_definition
|
2024-01-06 15:05:50 +09:00
|
|
|
"union"
|
|
|
|
|
.
|
|
|
|
|
(identifier) @local.definition.type)
|
2023-03-12 06:09:35 -04:00
|
|
|
|
|
|
|
|
(exception_definition
|
2024-01-06 15:05:50 +09:00
|
|
|
"exception"
|
|
|
|
|
.
|
|
|
|
|
(identifier) @local.definition.type)
|
2023-03-12 06:09:35 -04:00
|
|
|
|
|
|
|
|
(service_definition
|
2024-01-06 15:05:50 +09:00
|
|
|
"service"
|
|
|
|
|
.
|
|
|
|
|
(identifier) @local.definition.type)
|
2023-03-12 06:09:35 -04:00
|
|
|
|
|
|
|
|
(interaction_definition
|
2024-01-06 15:05:50 +09:00
|
|
|
"interaction"
|
|
|
|
|
.
|
|
|
|
|
(identifier) @local.definition.type)
|
2023-03-12 06:09:35 -04:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(typedef_identifier) @local.definition.type
|