tree-sitter-bp/queries/highlights.scm

67 lines
825 B
Scheme
Raw Normal View History

(comment) @comment
2024-04-08 21:38:24 +02:00
2024-04-08 21:54:35 +02:00
; Operators {{{
(operator) @operator
(integer_literal ("-") @operator)
2024-04-08 21:54:35 +02:00
; }}}
2024-04-08 22:31:38 +02:00
; Punctuation {{{
[
","
":"
] @punctuation.delimiter
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
; }}}
2024-04-08 21:47:55 +02:00
; Literal {{{
(boolean_literal) @boolean
(integer_literal) @number
[
(raw_string_literal)
(interpreted_string_literal)
] @string
(escape_sequence) @string.escape
; }}}
2024-04-08 21:51:39 +02:00
; Declarations {{{
(identifier) @variable
(module
type: (identifier) @function.call)
(module
(property
field: (identifier) @variable.parameter))
2024-04-08 21:51:39 +02:00
; }}}
2024-04-08 23:13:23 +02:00
; Built-ins {{{
[
(unset)
"default"
] @variable.builtin
(selection_type) @function.builtin
; }}}
2024-04-08 22:35:55 +02:00
; Expressions {{{
(map_expression
(property
field: (identifier) @property))
2024-04-08 23:13:23 +02:00
(select_expression
"select" @keyword.conditional)
2024-04-08 22:35:55 +02:00
; }}}
2024-04-08 21:38:24 +02:00
; vim: sw=2 foldmethod=marker