Align queries with 'nvim-treesitter'
All checks were successful
ci/woodpecker/push/check Pipeline was successful
All checks were successful
ci/woodpecker/push/check Pipeline was successful
Makes it easier to update either way.
This commit is contained in:
parent
aeb1fc2bb5
commit
16c43068ec
|
@ -4,5 +4,3 @@
|
||||||
(module)
|
(module)
|
||||||
(select_expression)
|
(select_expression)
|
||||||
] @fold
|
] @fold
|
||||||
|
|
||||||
; vim: sw=2 foldmethod=marker
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
||||||
; Operators {{{
|
|
||||||
(operator) @operator
|
(operator) @operator
|
||||||
|
|
||||||
(integer_literal ("-") @operator)
|
(integer_literal
|
||||||
; }}}
|
"-" @operator)
|
||||||
|
|
||||||
; Punctuation {{{
|
|
||||||
[
|
[
|
||||||
","
|
","
|
||||||
":"
|
":"
|
||||||
|
@ -20,9 +18,7 @@
|
||||||
"{"
|
"{"
|
||||||
"}"
|
"}"
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
; }}}
|
|
||||||
|
|
||||||
; Literal {{{
|
|
||||||
(boolean_literal) @boolean
|
(boolean_literal) @boolean
|
||||||
|
|
||||||
(integer_literal) @number
|
(integer_literal) @number
|
||||||
|
@ -33,9 +29,7 @@
|
||||||
] @string
|
] @string
|
||||||
|
|
||||||
(escape_sequence) @string.escape
|
(escape_sequence) @string.escape
|
||||||
; }}}
|
|
||||||
|
|
||||||
; Declarations {{{
|
|
||||||
(identifier) @variable
|
(identifier) @variable
|
||||||
|
|
||||||
(module
|
(module
|
||||||
|
@ -44,25 +38,19 @@
|
||||||
(module
|
(module
|
||||||
(property
|
(property
|
||||||
field: (identifier) @variable.parameter))
|
field: (identifier) @variable.parameter))
|
||||||
; }}}
|
|
||||||
|
|
||||||
; Built-ins {{{
|
|
||||||
[
|
[
|
||||||
(unset)
|
(unset)
|
||||||
(default)
|
(default)
|
||||||
(any)
|
(any)
|
||||||
] @variable.builtin
|
] @variable.builtin
|
||||||
|
|
||||||
(condition
|
(condition
|
||||||
name: (identifier) @function.builtin)
|
name: (identifier) @function.builtin)
|
||||||
; }}}
|
|
||||||
|
|
||||||
; Expressions {{{
|
|
||||||
(map_expression
|
(map_expression
|
||||||
(property
|
(property
|
||||||
field: (identifier) @property))
|
field: (identifier) @property))
|
||||||
|
|
||||||
(select_expression
|
(select_expression
|
||||||
"select" @keyword.conditional)
|
"select" @keyword.conditional)
|
||||||
; }}}
|
|
||||||
|
|
||||||
; vim: sw=2 foldmethod=marker
|
|
||||||
|
|
|
@ -1,36 +1,38 @@
|
||||||
; Expressions {{{
|
|
||||||
(list_expression) @indent.begin
|
(list_expression) @indent.begin
|
||||||
|
|
||||||
(list_expression
|
(list_expression
|
||||||
"]" @indent.branch)
|
"]" @indent.branch)
|
||||||
|
|
||||||
(map_expression) @indent.begin
|
(map_expression) @indent.begin
|
||||||
|
|
||||||
(map_expression
|
(map_expression
|
||||||
"}" @indent.branch)
|
"}" @indent.branch)
|
||||||
|
|
||||||
(select_expression) @indent.begin
|
(select_expression) @indent.begin
|
||||||
|
|
||||||
(select_expression
|
(select_expression
|
||||||
")" @indent.branch)
|
")" @indent.branch)
|
||||||
|
|
||||||
(select_value) @indent.begin
|
(select_value) @indent.begin
|
||||||
|
|
||||||
(select_value
|
(select_value
|
||||||
")" @indent.branch)
|
")" @indent.branch)
|
||||||
|
|
||||||
(select_pattern
|
(select_pattern
|
||||||
"(" @indent.begin)
|
"(" @indent.begin)
|
||||||
|
|
||||||
(select_pattern
|
(select_pattern
|
||||||
")" @indent.branch)
|
")" @indent.branch)
|
||||||
|
|
||||||
(select_cases) @indent.begin
|
(select_cases) @indent.begin
|
||||||
|
|
||||||
(select_cases
|
(select_cases
|
||||||
"}" @indent.branch)
|
"}" @indent.branch)
|
||||||
; }}}
|
|
||||||
|
|
||||||
; Declarations {{{
|
|
||||||
(module) @indent.begin
|
(module) @indent.begin
|
||||||
|
|
||||||
(module
|
(module
|
||||||
")" @indent.branch)
|
")" @indent.branch)
|
||||||
|
|
||||||
(module
|
(module
|
||||||
"}" @indent.branch)
|
"}" @indent.branch)
|
||||||
; }}}
|
|
||||||
|
|
||||||
; vim: sw=2 foldmethod=marker
|
|
||||||
|
|
|
@ -1,4 +1,2 @@
|
||||||
((comment) @injection.content
|
((comment) @injection.content
|
||||||
(#set! injection.language "comment"))
|
(#set! injection.language "comment"))
|
||||||
|
|
||||||
; vim: sw=2 foldmethod=marker
|
|
||||||
|
|
|
@ -13,5 +13,3 @@
|
||||||
binding: (identifier) @local.definition.var)
|
binding: (identifier) @local.definition.var)
|
||||||
|
|
||||||
(identifier) @local.reference
|
(identifier) @local.reference
|
||||||
|
|
||||||
; vim: sw=2 foldmethod=marker
|
|
||||||
|
|
Loading…
Reference in a new issue