nvim-treesitter/runtime/queries/kdl/highlights.scm

72 lines
819 B
Scheme
Raw Normal View History

; Types
; Variables
(identifier) @variable
; Nodes
(node
(identifier) @tag)
; Type annotation
(type
(identifier) @type)
; Properties
2024-01-06 15:05:50 +09:00
(prop
(identifier) @property)
; Operators
[
2024-01-06 15:05:50 +09:00
"="
"+"
"-"
] @operator
; Literals
(string) @string
(escape) @string.escape
(number) @number
2024-01-06 15:05:50 +09:00
(number
(decimal) @number.float)
(number
(exponent) @number.float)
(boolean) @boolean
"null" @constant.builtin
; Punctuation
2024-01-06 15:05:50 +09:00
[
"{"
"}"
] @punctuation.bracket
[
2024-01-06 15:05:50 +09:00
"("
")"
] @punctuation.bracket
2024-01-06 15:05:50 +09:00
";" @punctuation.delimiter
2024-01-06 15:05:50 +09:00
; Comments
[
(single_line_comment)
(multi_line_comment)
2023-02-05 21:28:27 -05:00
] @comment @spell
2024-01-06 15:05:50 +09:00
(node
(node_comment)
(#set! priority 105)) @comment
2024-01-06 15:05:50 +09:00
(node
(node_field
(node_field_comment)
(#set! priority 105)) @comment)
2024-01-06 15:05:50 +09:00
(node_children
(node_children_comment)
(#set! priority 105)) @comment