summaryrefslogtreecommitdiff
path: root/queries/julia/indents.scm
blob: 9cfdc4076a85dabb6626a980f32f1b6e19c25067 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[
  (struct_definition)
  (macro_definition)
  (function_definition)

  (if_statement)
  (try_statement)
  (for_statement)
  (while_statement)
  (let_statement)
  (quote_statement)

  (do_clause)
  (compound_statement)

  (assignment_expression)
  (binary_expression)
  (call_expression)

  (array_expression)
  (tuple_expression)
  (matrix_expression)
] @indent

[
  "end"
  "("
  ")"
  "["
  "]"
  (else_clause)
  (elseif_clause)
  (catch_clause)
  (finally_clause)
] @branch

[
  (line_comment)
  (block_comment)
] @ignore