2023-01-28 07:59:56 -05:00
|
|
|
; Types
|
2025-02-27 02:53:58 -06:00
|
|
|
; Variables
|
|
|
|
|
(identifier) @variable
|
2023-01-28 07:59:56 -05:00
|
|
|
|
2025-02-27 02:53:58 -06:00
|
|
|
; Nodes
|
|
|
|
|
(node
|
|
|
|
|
(identifier) @tag)
|
2023-01-28 07:59:56 -05:00
|
|
|
|
2025-02-27 02:53:58 -06:00
|
|
|
; Type annotation
|
|
|
|
|
(type
|
|
|
|
|
(identifier) @type)
|
2023-01-28 07:59:56 -05:00
|
|
|
|
|
|
|
|
; Properties
|
2024-01-06 15:05:50 +09:00
|
|
|
(prop
|
|
|
|
|
(identifier) @property)
|
2023-01-28 07:59:56 -05:00
|
|
|
|
|
|
|
|
; Operators
|
|
|
|
|
[
|
2024-01-06 15:05:50 +09:00
|
|
|
"="
|
|
|
|
|
"+"
|
|
|
|
|
"-"
|
2023-01-28 07:59:56 -05: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)
|
2023-01-28 07:59:56 -05:00
|
|
|
|
|
|
|
|
(boolean) @boolean
|
|
|
|
|
|
|
|
|
|
"null" @constant.builtin
|
|
|
|
|
|
2023-02-28 20:26:51 -05:00
|
|
|
; Punctuation
|
2024-01-06 15:05:50 +09:00
|
|
|
[
|
|
|
|
|
"{"
|
|
|
|
|
"}"
|
|
|
|
|
] @punctuation.bracket
|
2023-01-28 07:59:56 -05:00
|
|
|
|
2023-02-28 20:26:51 -05:00
|
|
|
[
|
2024-01-06 15:05:50 +09:00
|
|
|
"("
|
|
|
|
|
")"
|
|
|
|
|
] @punctuation.bracket
|
2023-02-28 20:26:51 -05:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
";" @punctuation.delimiter
|
2023-01-28 07:59:56 -05:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; Comments
|
2023-01-28 07:59:56 -05:00
|
|
|
[
|
|
|
|
|
(single_line_comment)
|
|
|
|
|
(multi_line_comment)
|
2023-02-05 21:28:27 -05:00
|
|
|
] @comment @spell
|
2023-01-28 07:59:56 -05:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(node
|
|
|
|
|
(node_comment)
|
2024-07-27 16:28:19 -07:00
|
|
|
(#set! priority 105)) @comment
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(node
|
|
|
|
|
(node_field
|
|
|
|
|
(node_field_comment)
|
2024-07-27 16:28:19 -07:00
|
|
|
(#set! priority 105)) @comment)
|
2024-01-06 15:05:50 +09:00
|
|
|
|
|
|
|
|
(node_children
|
|
|
|
|
(node_children_comment)
|
2024-07-27 16:28:19 -07:00
|
|
|
(#set! priority 105)) @comment
|