mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00: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:
@@ -1166,7 +1166,7 @@ return {
|
||||
},
|
||||
julia = {
|
||||
install_info = {
|
||||
revision = 'a0b436e4a2895596eb9965a9493e18989defa521',
|
||||
revision = '5a5d3082e13edd5afc4c274498d6125ecc914870',
|
||||
url = 'https://github.com/tree-sitter-grammars/tree-sitter-julia',
|
||||
},
|
||||
maintainers = { '@clason' },
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user