mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue