Unnamed repository; edit this file 'description' to name the repository.
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
[
  (import_declaration)
  (const_declaration)
  (type_declaration)
  (type_spec)
  (func_literal)
  (literal_value)
  (literal_element)
  (keyed_element)
  (expression_case)
  (default_case)
  (type_case)
  (communication_case)
  (argument_list)
  (field_declaration_list)
  (block)
  (var_declaration)
] @indent

[
  "]"
  ")"
] @outdent

; Switches and selects aren't indented, only their case bodies are.
; Outdent all closing braces except those closing switches or selects.
(
    (_ "}" @outdent) @outer
    (#not-kind-eq? @outer "select_statement")
    (#not-kind-eq? @outer "type_switch_statement")
    (#not-kind-eq? @outer "expression_switch_statement")
)

; Starting a line after a new case should indent.
[
  (communication_case)
  (expression_case)
  (default_case)
  (type_case)
] @extend
e" "function.method" = "foam" "constructor" = "gold" "special" = "gold" "keyword" = "pine" "label" = "iris" "namespace" = "pine" "ui.popup" = { bg = "overlay" } "ui.window" = { bg = "base" } "ui.help" = { bg = "overlay", fg = "foam" } "text" = "text" "info" = "gold" "hint" = "gold" "debug" = "rose" "diagnostic" = "rose" "error" = "love" [palette] base = "#191724" surface = "#1f1d2e" overlay = "#26233a" inactive = "#555169" subtle = "#6e6a86" text = "#e0def4" love = "#eb6f92" gold = "#f6c177" rose = "#ebbcba" pine = "#31748f" foam = "#9ccfd8" iris = "#c4a7e7" highlight = "#2a2837" highlightInactive = "#211f2d" highlightOverlay = "#3a384a"