tree-sitter-bp/queries/highlights.scm
Bruno BELANYI 16c43068ec
All checks were successful
ci/woodpecker/push/check Pipeline was successful
Align queries with 'nvim-treesitter'
Makes it easier to update either way.
2024-12-23 23:08:26 -05:00

57 lines
694 B
Scheme

(comment) @comment
(operator) @operator
(integer_literal
"-" @operator)
[
","
":"
] @punctuation.delimiter
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
(boolean_literal) @boolean
(integer_literal) @number
[
(raw_string_literal)
(interpreted_string_literal)
] @string
(escape_sequence) @string.escape
(identifier) @variable
(module
type: (identifier) @function.call)
(module
(property
field: (identifier) @variable.parameter))
[
(unset)
(default)
(any)
] @variable.builtin
(condition
name: (identifier) @function.builtin)
(map_expression
(property
field: (identifier) @property))
(select_expression
"select" @keyword.conditional)