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

68 lines
716 B
Scheme
Raw Normal View History

2024-02-22 21:57:07 -05:00
[
"ajar"
"alias"
"as"
"bits"
"closed"
"compose"
"const"
"error"
"flexible"
"library"
"open"
; "optional" we did not specify a node for optional yet
"overlay"
"protocol"
"reserved"
"strict"
2024-04-23 12:23:15 -07:00
"using"
] @keyword
[
"enum"
2024-02-22 21:57:07 -05:00
"struct"
"table"
"union"
2024-04-23 12:23:15 -07:00
"resource"
"service"
"type"
] @keyword.type
2024-02-22 21:57:07 -05:00
(primitives_type) @type.builtin
(builtin_complex_type) @type.builtin
(const_declaration
(identifier) @constant)
[
"="
"|"
"&"
"->"
] @operator
(attribute
"@" @attribute
(identifier) @attribute)
(string_literal) @string
(numeric_literal) @number
[
(true)
(false)
] @boolean
(comment) @comment
[
"("
")"
"<"
">"
"{"
"}"
] @punctuation.bracket