feat: add facility

This commit is contained in:
Bryan Kenote 2023-11-28 17:24:43 +00:00 committed by GitHub
parent 582a92ee12
commit bf982eb7dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 113 additions and 0 deletions

View file

@ -0,0 +1,6 @@
[
(service)
(method)
(dto)
(enum)
] @fold

View file

@ -0,0 +1,81 @@
[
";"
"."
","
] @punctuation.delimiter
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket
(comment) @comment @spell
(doc_comment) @comment.documentation @spell
"method" @keyword.function
[
"service"
"errors"
"data"
"enum"
"extern"
] @type.builtin
(type) @type.builtin
(service
service_name: (identifier) @type)
(error_set
(identifier) @property)
(error_set
name: (identifier) @type)
(dto
name: (identifier) @type)
(external_dto
name: (identifier) @type)
(enum
(values_block
(identifier) @constant))
(enum
name: (identifier) @type)
(external_enum
name: (identifier) @type)
(type
name: (identifier) @type)
[
"map"
"nullable"
"result"
"required"
"http"
"csharp"
"js"
"info"
"obsolete"
] @attribute.builtin
(parameter
name: (identifier) @property)
(field
name: (identifier) @variable)
(method
name: (identifier) @method)
(number_literal) @number
(string_literal) @string

View file

@ -0,0 +1,8 @@
[
(service_block)
(values_block)
(field_list)
] @indent.begin
"}" @indent.branch

View file

@ -0,0 +1,5 @@
((remarks) @injection.content
(#set! injection.language "markdown"))
([(comment) (doc_comment)] @injection.content
(#set! injection.language "comment"))