2023-03-16 07:00:30 -04:00
|
|
|
; Scopes
|
|
|
|
|
[
|
|
|
|
|
(class)
|
|
|
|
|
(multiclass)
|
|
|
|
|
(def)
|
|
|
|
|
(defm)
|
|
|
|
|
(defset)
|
|
|
|
|
(defvar)
|
|
|
|
|
(foreach)
|
|
|
|
|
(if)
|
|
|
|
|
(let)
|
2023-07-22 15:29:32 +02:00
|
|
|
] @local.scope
|
2023-03-16 07:00:30 -04:00
|
|
|
|
|
|
|
|
; References
|
|
|
|
|
[
|
|
|
|
|
(var)
|
|
|
|
|
(identifier)
|
2023-07-22 15:29:32 +02:00
|
|
|
] @local.reference
|
2023-03-16 07:00:30 -04:00
|
|
|
|
|
|
|
|
; Definitions
|
|
|
|
|
(instruction
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.definition.field)
|
2023-03-16 07:00:30 -04:00
|
|
|
|
|
|
|
|
(let_instruction
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.definition.field)
|
2023-03-16 07:00:30 -04:00
|
|
|
|
|
|
|
|
(include_directive
|
2023-07-22 15:29:32 +02:00
|
|
|
(string) @local.definition.import)
|
2023-03-16 07:00:30 -04:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(template_arg
|
|
|
|
|
(identifier) @local.definition.parameter)
|
2023-03-16 07:00:30 -04:00
|
|
|
|
|
|
|
|
(class
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition.type)
|
2023-03-16 07:00:30 -04:00
|
|
|
|
|
|
|
|
(multiclass
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition.type)
|
2023-03-16 07:00:30 -04:00
|
|
|
|
|
|
|
|
(def
|
2024-03-21 20:44:35 +09:00
|
|
|
name: (value
|
|
|
|
|
(_) @local.definition.type))
|
2023-03-16 07:00:30 -04:00
|
|
|
|
|
|
|
|
(defm
|
2024-03-21 20:44:35 +09:00
|
|
|
name: (value
|
|
|
|
|
(_) @local.definition.type))
|
2023-03-16 07:00:30 -04:00
|
|
|
|
|
|
|
|
(defset
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition.type)
|
2023-03-16 07:00:30 -04:00
|
|
|
|
|
|
|
|
(def_var
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition.var)
|