mirror of https://github.com/helix-editor/helix
add fidl support (#9713)
parent
1a82aeeae9
commit
358ac6bc1f
@ -0,0 +1,6 @@
|
||||
[
|
||||
(layout_declaration)
|
||||
(protocol_declaration)
|
||||
(resource_declaration)
|
||||
(service_declaration)
|
||||
] @fold
|
@ -0,0 +1,64 @@
|
||||
[
|
||||
"ajar"
|
||||
"alias"
|
||||
"as"
|
||||
"bits"
|
||||
"closed"
|
||||
"compose"
|
||||
"const"
|
||||
"enum"
|
||||
"error"
|
||||
"flexible"
|
||||
"library"
|
||||
"open"
|
||||
; "optional" we did not specify a node for optional yet
|
||||
"overlay"
|
||||
"protocol"
|
||||
"reserved"
|
||||
"resource"
|
||||
"service"
|
||||
"strict"
|
||||
"struct"
|
||||
"table"
|
||||
"type"
|
||||
"union"
|
||||
"using"
|
||||
] @keyword
|
||||
|
||||
(primitives_type) @type.builtin
|
||||
|
||||
(builtin_complex_type) @type.builtin
|
||||
|
||||
(const_declaration
|
||||
(identifier) @constant)
|
||||
|
||||
[
|
||||
"="
|
||||
"|"
|
||||
"&"
|
||||
"->"
|
||||
] @operator
|
||||
|
||||
(attribute
|
||||
"@" @attribute
|
||||
(identifier) @attribute)
|
||||
|
||||
(string_literal) @string
|
||||
|
||||
(numeric_literal) @constant.numeric
|
||||
|
||||
[
|
||||
(true)
|
||||
(false)
|
||||
] @constant.builtin.boolean
|
||||
|
||||
(comment) @comment
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"<"
|
||||
">"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
@ -0,0 +1,2 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
Loading…
Reference in New Issue