mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -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
|
|
@ -1166,7 +1166,7 @@ return {
|
||||||
},
|
},
|
||||||
julia = {
|
julia = {
|
||||||
install_info = {
|
install_info = {
|
||||||
revision = 'a0b436e4a2895596eb9965a9493e18989defa521',
|
revision = '5a5d3082e13edd5afc4c274498d6125ecc914870',
|
||||||
url = 'https://github.com/tree-sitter-grammars/tree-sitter-julia',
|
url = 'https://github.com/tree-sitter-grammars/tree-sitter-julia',
|
||||||
},
|
},
|
||||||
maintainers = { '@clason' },
|
maintainers = { '@clason' },
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,41 @@
|
||||||
; References
|
; References
|
||||||
(identifier) @local.reference
|
(identifier) @local.reference
|
||||||
|
|
||||||
; Variables
|
; Definitions
|
||||||
(assignment
|
(assignment
|
||||||
|
.
|
||||||
(identifier) @local.definition.var)
|
(identifier) @local.definition.var)
|
||||||
|
|
||||||
(assignment
|
(assignment
|
||||||
|
.
|
||||||
(tuple_expression
|
(tuple_expression
|
||||||
(identifier) @local.definition.var))
|
(identifier) @local.definition.var))
|
||||||
|
|
||||||
; For bindings
|
(assignment
|
||||||
|
.
|
||||||
|
(open_tuple
|
||||||
|
(identifier) @local.definition.var))
|
||||||
|
|
||||||
(for_binding
|
(for_binding
|
||||||
|
.
|
||||||
(identifier) @local.definition.var)
|
(identifier) @local.definition.var)
|
||||||
|
|
||||||
(for_binding
|
(for_binding
|
||||||
|
.
|
||||||
(tuple_expression
|
(tuple_expression
|
||||||
(identifier) @local.definition.var))
|
(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
|
(module_definition
|
||||||
(identifier) @local.definition.type)
|
.
|
||||||
|
|
||||||
(struct_definition
|
|
||||||
(identifier) @local.definition.type)
|
(identifier) @local.definition.type)
|
||||||
|
|
||||||
(type_head
|
(type_head
|
||||||
|
|
@ -32,17 +46,6 @@
|
||||||
.
|
.
|
||||||
(identifier) @local.definition.type))
|
(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
|
(function_definition
|
||||||
(signature
|
(signature
|
||||||
(call_expression
|
(call_expression
|
||||||
|
|
@ -55,6 +58,7 @@
|
||||||
.
|
.
|
||||||
(identifier) @local.definition.function))) @local.scope
|
(identifier) @local.definition.function))) @local.scope
|
||||||
|
|
||||||
|
; Scopes
|
||||||
[
|
[
|
||||||
(quote_statement)
|
(quote_statement)
|
||||||
(let_statement)
|
(let_statement)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue