aboutsummaryrefslogtreecommitdiffstats
path: root/queries/julia/indents.scm
blob: 3c87a05fbe4ae3526aff963d03ebf50da8785e77 (plain) (blame)
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
42
[
  (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)
  (catch_clause)
  (finally_clause)
] @branch

[
  (comment)
  (block_comment)
  (triple_string)
] @ignore