Skip to content

Commit

Permalink
Update tree-sitter-julia (#10031)
Browse files Browse the repository at this point in the history
Update julia parser to latest version, along with:
- updating the queries,
- pulling changes from `nvim-treesitter`’s queries (as the maintainters
  of the parser update the queries there),
- reversing the queries’ order to be compatible with upstream.
  • Loading branch information
Iorvethe authored May 17, 2024
1 parent 917ada3 commit 17bb6b4
Show file tree
Hide file tree
Showing 6 changed files with 478 additions and 197 deletions.
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ indent = { tab-width = 4, unit = " " }

[[grammar]]
name = "julia"
source = { git = "https://github.com/tree-sitter/tree-sitter-julia", rev = "8fb38abff74652c4faddbf04d2d5bbbc6b4bae25" }
source = { git = "https://github.com/tree-sitter/tree-sitter-julia", rev = "e84f10db8eeb8b9807786bfc658808edaa1b4fa2" }

[[language]]
name = "java"
Expand Down
21 changes: 12 additions & 9 deletions runtime/queries/julia/folds.scm
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
[
(module_definition)
(struct_definition)
(macro_definition)
(function_definition)
(compound_expression) ; begin blocks
(let_statement)
(if_statement)
(for_statement)
(while_statement)
(module_definition)
(struct_definition)
(macro_definition)
(function_definition)
(if_statement)
(try_statement)
(for_statement)
(while_statement)
(let_statement)
(quote_statement)
(do_clause)
(compound_statement) ; begin block
] @fold
Loading

0 comments on commit 17bb6b4

Please sign in to comment.