tree-sitter-bp/queries/highlights.scm

59 lines
689 B
Scheme

[
(line_comment)
(block_comment)
] @comment
; Operators {{{
(operator) @operator
(integer_literal ("-") @operator)
; }}}
; Punctuation {{{
[
","
":"
] @punctuation.delimiter
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
; }}}
; Literal {{{
(boolean_literal) @boolean
(integer_literal) @number
[
(raw_string_literal)
(interpreted_string_literal)
] @string
(escape_sequence) @string.escape
; }}}
; Declarations {{{
(identifier) @variable
(module
type: (identifier) @module)
(module
(property
field: (identifier) @variable.member))
; }}}
; Expressions {{{
(map_expression
(property
field: (identifier) @property))
; }}}
; vim: sw=2 foldmethod=marker