mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 20:30:05 -04:00
fix(julia): adapt queries to grammar changes (#6429)
This commit is contained in:
parent
86ac7e9274
commit
d2f4c78303
6 changed files with 23 additions and 81 deletions
|
|
@ -39,35 +39,18 @@
|
|||
(import_statement
|
||||
(identifier) @local.definition.import)
|
||||
|
||||
; Parameters
|
||||
(parameter_list
|
||||
(identifier) @local.definition.parameter)
|
||||
|
||||
(optional_parameter
|
||||
.
|
||||
(identifier) @local.definition.parameter)
|
||||
|
||||
(slurp_parameter
|
||||
(identifier) @local.definition.parameter)
|
||||
|
||||
(typed_parameter
|
||||
parameter: (identifier) @local.definition.parameter
|
||||
(_))
|
||||
|
||||
; Single parameter arrow function
|
||||
(function_expression
|
||||
.
|
||||
(identifier) @local.definition.parameter)
|
||||
|
||||
; Function/macro definitions
|
||||
(function_definition
|
||||
name: (identifier) @local.definition.function) @local.scope
|
||||
|
||||
(short_function_definition
|
||||
name: (identifier) @local.definition.function) @local.scope
|
||||
(signature
|
||||
(call_expression
|
||||
.
|
||||
(identifier) @local.definition.function))) @local.scope
|
||||
|
||||
(macro_definition
|
||||
name: (identifier) @local.definition.macro) @local.scope
|
||||
(signature
|
||||
(call_expression
|
||||
.
|
||||
(identifier) @local.definition.function))) @local.scope
|
||||
|
||||
(identifier) @local.reference
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue