mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
Add Julia indent queries
This commit is contained in:
parent
c37e79803e
commit
6ec7516d3d
1 changed files with 40 additions and 0 deletions
40
queries/julia/indents.scm
Normal file
40
queries/julia/indents.scm
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[
|
||||
(struct_definition)
|
||||
(macro_definition)
|
||||
(function_definition)
|
||||
|
||||
(if_statement)
|
||||
(try_statement)
|
||||
(for_statement)
|
||||
(while_statement)
|
||||
(let_statement)
|
||||
(quote_statement)
|
||||
|
||||
(do_clause)
|
||||
(compound_expression)
|
||||
|
||||
(assignment_expression)
|
||||
(binary_expression)
|
||||
(call_expression)
|
||||
|
||||
(array_expression)
|
||||
(tuple_expression)
|
||||
(matrix_expression)
|
||||
] @indent
|
||||
|
||||
[
|
||||
"end"
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
(else_clause)
|
||||
(elseif_clause)
|
||||
] @branch
|
||||
|
||||
[
|
||||
(comment)
|
||||
(block_comment)
|
||||
(triple_string)
|
||||
] @ignore
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue