mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat: add facility
This commit is contained in:
parent
582a92ee12
commit
bf982eb7dc
7 changed files with 113 additions and 0 deletions
|
|
@ -223,6 +223,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
|||
- [x] [elvish](https://github.com/elves/tree-sitter-elvish) (maintained by @elves)
|
||||
- [ ] [embedded_template](https://github.com/tree-sitter/tree-sitter-embedded-template)
|
||||
- [x] [erlang](https://github.com/WhatsApp/tree-sitter-erlang) (maintained by @filmor)
|
||||
- [x] [facility](https://github.com/FacilityApi/tree-sitter-facility) (maintained by @bryankenote)
|
||||
- [x] [fennel](https://github.com/travonted/tree-sitter-fennel) (maintained by @TravonteD)
|
||||
- [x] [firrtl](https://github.com/amaanq/tree-sitter-firrtl) (maintained by @amaanq)
|
||||
- [x] [fish](https://github.com/ram02z/tree-sitter-fish) (maintained by @ram02z)
|
||||
|
|
|
|||
|
|
@ -149,6 +149,9 @@
|
|||
"erlang": {
|
||||
"revision": "56942778b5791d07949e6c7b6093e01aba5b7ab4"
|
||||
},
|
||||
"facility": {
|
||||
"revision": "a2f90a0d4a3c41bcaa80cabb5f7467daefcd33f4"
|
||||
},
|
||||
"fennel": {
|
||||
"revision": "517195970428aacca60891b050aa53eabf4ba78d"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -496,6 +496,15 @@ list.erlang = {
|
|||
maintainers = { "@filmor" },
|
||||
}
|
||||
|
||||
list.facility = {
|
||||
install_info = {
|
||||
url = "https://github.com/FacilityApi/tree-sitter-facility",
|
||||
files = { "src/parser.c" },
|
||||
},
|
||||
filetype = "fsd",
|
||||
maintainers = { "@bryankenote" },
|
||||
}
|
||||
|
||||
list.fennel = {
|
||||
install_info = {
|
||||
url = "https://github.com/travonted/tree-sitter-fennel",
|
||||
|
|
|
|||
6
queries/facility/folds.scm
Normal file
6
queries/facility/folds.scm
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[
|
||||
(service)
|
||||
(method)
|
||||
(dto)
|
||||
(enum)
|
||||
] @fold
|
||||
81
queries/facility/highlights.scm
Normal file
81
queries/facility/highlights.scm
Normal 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
|
||||
8
queries/facility/indents.scm
Normal file
8
queries/facility/indents.scm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[
|
||||
(service_block)
|
||||
(values_block)
|
||||
(field_list)
|
||||
] @indent.begin
|
||||
|
||||
"}" @indent.branch
|
||||
|
||||
5
queries/facility/injections.scm
Normal file
5
queries/facility/injections.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
((remarks) @injection.content
|
||||
(#set! injection.language "markdown"))
|
||||
|
||||
([(comment) (doc_comment)] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue