mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(julia)!: update parser and queries (#8235)
sync locals queries with upstream --------- Co-authored-by: Christian Clason <c.clason@uni-graz.at>
This commit is contained in:
parent
738d9ced4c
commit
645f42e85d
2 changed files with 22 additions and 18 deletions
|
|
@ -1,27 +1,41 @@
|
|||
; References
|
||||
(identifier) @local.reference
|
||||
|
||||
; Variables
|
||||
; Definitions
|
||||
(assignment
|
||||
.
|
||||
(identifier) @local.definition.var)
|
||||
|
||||
(assignment
|
||||
.
|
||||
(tuple_expression
|
||||
(identifier) @local.definition.var))
|
||||
|
||||
; For bindings
|
||||
(assignment
|
||||
.
|
||||
(open_tuple
|
||||
(identifier) @local.definition.var))
|
||||
|
||||
(for_binding
|
||||
.
|
||||
(identifier) @local.definition.var)
|
||||
|
||||
(for_binding
|
||||
.
|
||||
(tuple_expression
|
||||
(identifier) @local.definition.var))
|
||||
|
||||
; Types
|
||||
(import_statement
|
||||
(identifier) @local.definition.import)
|
||||
|
||||
(using_statement
|
||||
(identifier) @local.definition.import)
|
||||
|
||||
(selected_import
|
||||
(identifier) @local.definition.import)
|
||||
|
||||
(module_definition
|
||||
(identifier) @local.definition.type)
|
||||
|
||||
(struct_definition
|
||||
.
|
||||
(identifier) @local.definition.type)
|
||||
|
||||
(type_head
|
||||
|
|
@ -32,17 +46,6 @@
|
|||
.
|
||||
(identifier) @local.definition.type))
|
||||
|
||||
; Module imports
|
||||
(import_statement
|
||||
(identifier) @local.definition.import)
|
||||
|
||||
(using_statement
|
||||
(identifier) @local.definition.import)
|
||||
|
||||
(selected_import
|
||||
(identifier) @local.definition.import)
|
||||
|
||||
; Scopes
|
||||
(function_definition
|
||||
(signature
|
||||
(call_expression
|
||||
|
|
@ -55,6 +58,7 @@
|
|||
.
|
||||
(identifier) @local.definition.function))) @local.scope
|
||||
|
||||
; Scopes
|
||||
[
|
||||
(quote_statement)
|
||||
(let_statement)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue