mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
feat(caddy): add parser and queries (#7588)
--------- Co-authored-by: Christian Clason <c.clason@uni-graz.at>
This commit is contained in:
parent
b454febfd9
commit
9399bfd816
7 changed files with 78 additions and 0 deletions
|
|
@ -193,6 +193,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
|||
- [x] [bp](https://github.com/ambroisie/tree-sitter-bp) (maintained by @ambroisie)
|
||||
- [x] [c](https://github.com/tree-sitter/tree-sitter-c) (maintained by @amaanq)
|
||||
- [x] [c_sharp](https://github.com/tree-sitter/tree-sitter-c-sharp) (maintained by @amaanq)
|
||||
- [x] [caddy](https://github.com/opa-oz/tree-sitter-caddy) (maintained by @opa-oz)
|
||||
- [x] [cairo](https://github.com/amaanq/tree-sitter-cairo) (maintained by @amaanq)
|
||||
- [x] [capnp](https://github.com/amaanq/tree-sitter-capnp) (maintained by @amaanq)
|
||||
- [x] [chatito](https://github.com/ObserverOfTime/tree-sitter-chatito) (maintained by @ObserverOfTime)
|
||||
|
|
|
|||
|
|
@ -59,6 +59,9 @@
|
|||
"c_sharp": {
|
||||
"revision": "b5eb5742f6a7e9438bee22ce8026d6b927be2cd7"
|
||||
},
|
||||
"caddy": {
|
||||
"revision": "2686186edb61be47960431c93a204fb249681360"
|
||||
},
|
||||
"cairo": {
|
||||
"revision": "6238f609bea233040fe927858156dee5515a0745"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -233,6 +233,14 @@ list.c_sharp = {
|
|||
maintainers = { "@amaanq" },
|
||||
}
|
||||
|
||||
list.caddy = {
|
||||
install_info = {
|
||||
url = "https://github.com/opa-oz/tree-sitter-caddy",
|
||||
files = { "src/parser.c", "src/scanner.c" },
|
||||
},
|
||||
maintainers = { "@opa-oz" },
|
||||
}
|
||||
|
||||
list.cairo = {
|
||||
install_info = {
|
||||
url = "https://github.com/amaanq/tree-sitter-cairo",
|
||||
|
|
|
|||
1
queries/caddy/folds.scm
Normal file
1
queries/caddy/folds.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(block) @fold
|
||||
55
queries/caddy/highlights.scm
Normal file
55
queries/caddy/highlights.scm
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
(comment) @comment @spell
|
||||
|
||||
[
|
||||
(env)
|
||||
(argv)
|
||||
(block_variable)
|
||||
(placeholder)
|
||||
] @constant
|
||||
|
||||
(value) @variable
|
||||
|
||||
(directive
|
||||
(keyword) @attribute)
|
||||
|
||||
(global_options
|
||||
(option
|
||||
(keyword) @attribute))
|
||||
|
||||
(keyword) @keyword
|
||||
|
||||
(boolean) @boolean
|
||||
|
||||
(placeholder
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.special)
|
||||
|
||||
(auto) @variable.builtin
|
||||
|
||||
[
|
||||
(string_literal)
|
||||
(quoted_string_literal)
|
||||
(address)
|
||||
] @string
|
||||
|
||||
[
|
||||
(matcher)
|
||||
(route)
|
||||
(snippet_name)
|
||||
] @string.special
|
||||
|
||||
[
|
||||
(numeric_literal)
|
||||
(time)
|
||||
(size)
|
||||
(ip_literal)
|
||||
] @number
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
"," @punctuation.delimiter
|
||||
8
queries/caddy/indents.scm
Normal file
8
queries/caddy/indents.scm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(block) @indent.begin
|
||||
|
||||
(block
|
||||
"}" @indent.branch)
|
||||
|
||||
(comment) @indent.auto
|
||||
|
||||
(ERROR) @indent.auto
|
||||
2
queries/caddy/injections.scm
Normal file
2
queries/caddy/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue