chore: queries

This commit is contained in:
Vladimir Levin 2025-01-26 13:24:25 +09:00 committed by Christian Clason
parent 86f4c19081
commit f6b70beb25
5 changed files with 69 additions and 1 deletions

View file

@ -60,7 +60,7 @@
"revision": "b5eb5742f6a7e9438bee22ce8026d6b927be2cd7"
},
"caddy": {
"revision": "6f860e7c0527b293439f5f96a1adac043e3ec18e"
"revision": "2686186edb61be47960431c93a204fb249681360"
},
"cairo": {
"revision": "6238f609bea233040fe927858156dee5515a0745"

2
queries/caddy/folds.scm Normal file
View file

@ -0,0 +1,2 @@
(block) @fold

View file

@ -0,0 +1,52 @@
(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

11
queries/caddy/indents.scm Normal file
View file

@ -0,0 +1,11 @@
[
(block)
] @indent.begin
(block
"}" @indent.branch)
(comment) @indent.auto
(ERROR) @indent.auto

View file

@ -0,0 +1,3 @@
((comment) @injection.content
(#set! injection.language "comment"))