mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -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
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