nvim-treesitter/runtime/queries/julia/indents.scm

53 lines
836 B
Scheme
Raw Permalink Normal View History

2021-06-14 15:46:13 -05:00
[
(struct_definition)
(macro_definition)
(function_definition)
(compound_statement)
2021-06-14 15:46:13 -05:00
(if_statement)
(try_statement)
(for_statement)
(while_statement)
(let_statement)
(quote_statement)
(do_clause)
(assignment)
(for_binding)
2021-06-14 15:46:13 -05:00
(call_expression)
(parenthesized_expression)
2021-06-14 15:46:13 -05:00
(tuple_expression)
(comprehension_expression)
2021-06-14 15:46:13 -05:00
(matrix_expression)
(vector_expression)
] @indent.begin
2021-06-14 15:46:13 -05:00
[
"end"
")"
"]"
"}"
] @indent.end
[
"end"
2021-06-14 15:46:13 -05:00
")"
"]"
"}"
2021-06-14 15:46:13 -05:00
(else_clause)
(elseif_clause)
2021-06-16 17:14:28 -05:00
(catch_clause)
(finally_clause)
] @indent.branch
2021-06-14 15:46:13 -05:00
[
(line_comment)
2021-06-14 15:46:13 -05:00
(block_comment)
] @indent.ignore
2021-06-14 15:46:13 -05:00
((argument_list) @indent.align
(#set! indent.open_delimiter "(")
(#set! indent.close_delimiter ")"))
2023-10-28 17:25:25 -03:00
((curly_expression) @indent.align
(#set! indent.open_delimiter "{")
(#set! indent.close_delimiter "}"))