chore: query formatting

This commit is contained in:
Pham Huy Hoang 2024-01-06 15:05:50 +09:00 committed by Christian Clason
parent 79975d6557
commit 57a8acf0c4
674 changed files with 18466 additions and 12648 deletions

View file

@ -13,14 +13,21 @@
"import" @keyword.import
[ "if" "then" "else" ] @keyword.conditional
[
"if"
"then"
"else"
] @keyword.conditional
"match" @keyword.conditional
(types) @type
"Array" @type.builtin
; BUILTIN Constants
(bool) @boolean
"null" @constant.builtin
(num_literal) @number
@ -28,34 +35,42 @@
(infix_op) @operator
(type_atom) @type
(enum_tag) @variable
(chunk_literal_single) @string
(chunk_literal_multi) @string
(str_esc_char) @string.escape
[
"{" "}"
"(" ")"
"[|" "|]"
"{"
"}"
"("
")"
"[|"
"|]"
] @punctuation.bracket
(multstr_start) @punctuation.bracket
(multstr_end) @punctuation.bracket
(interpolation_start) @punctuation.bracket
(interpolation_end) @punctuation.bracket
(record_field) @variable.member
(builtin) @function.builtin
(fun_expr pats:
(pattern id:
(ident) @variable.parameter
)
)
(fun_expr
pats:
(pattern
id: (ident) @variable.parameter))
(applicative t1:
(applicative (record_operand) @function)
)
(applicative
t1:
(applicative
(record_operand) @function))

View file

@ -1,6 +1,8 @@
[
(atom (uni_record)) ; for {...}
(atom terms: (term)) ; for [...]
(atom
(uni_record)) ; for {...}
(atom
terms: (term)) ; for [...]
] @indent.begin
[
@ -8,6 +10,4 @@
"}"
] @indent.end @indent.branch
[
(comment)
] @indent.auto
(comment) @indent.auto