tree-sitter-bp/queries/highlights.scm
Bruno BELANYI a9ec312792 Add modules highlighting
Still debating whether modules should be highlighted as namespaces or as
function calls.
2024-04-09 12:28:28 +01:00

37 lines
482 B
Scheme

[
(line_comment)
(block_comment)
] @comment
; Operators {{{
(operator) @operator
(integer_literal ("-") @operator)
; }}}
; 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))
; }}}
; vim: sw=2 foldmethod=marker