mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.0 KiB
Scheme
52 lines
1.0 KiB
Scheme
; Scopes
|
|
|
|
[
|
|
(document)
|
|
(definition)
|
|
] @local.scope
|
|
|
|
; References
|
|
|
|
(identifier) @local.reference
|
|
|
|
; Definitions
|
|
|
|
(annotation_identifier) @local.definition
|
|
|
|
; (const_definition (identifier) @definition.constant)
|
|
|
|
; (enum_definition "enum"
|
|
; . (identifier) @definition.enum
|
|
; "{" (identifier) @definition.constant "}")
|
|
|
|
; (senum_definition "senum"
|
|
; . (identifier) @definition.enum)
|
|
|
|
; (field (identifier) @definition.field)
|
|
|
|
; (function_definition (identifier) @definition.function)
|
|
|
|
; (namespace_declaration
|
|
; "namespace" (namespace_scope)
|
|
; . (_) @definition.namespace
|
|
; (namespace_uri)?)
|
|
|
|
; (parameter (identifier) @definition.parameter)
|
|
|
|
; (struct_definition
|
|
; "struct" . (identifier) @definition.type)
|
|
|
|
; (union_definition
|
|
; "union" . (identifier) @definition.type)
|
|
|
|
; (exception_definition
|
|
; "exception" . (identifier) @definition.type)
|
|
|
|
; (service_definition
|
|
; "service" . (identifier) @definition.type)
|
|
|
|
; (interaction_definition
|
|
; "interaction" . (identifier) @definition.type)
|
|
|
|
; (typedef_identifier) @definition.type
|