feat: add nginx

This commit is contained in:
Vladimir Levin 2024-07-17 16:47:59 +09:00 committed by GitHub
parent 0d5e1214a5
commit 067415e971
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 74 additions and 0 deletions

1
queries/nginx/folds.scm Normal file
View file

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

View file

@ -0,0 +1,59 @@
(comment) @comment @spell
(value) @variable
[
(location_modifier)
"="
] @operator
[
(keyword)
"location"
] @keyword
[
"if"
"map"
] @keyword.conditional
(boolean) @boolean
[
(auto)
(constant)
(level)
(connection_method)
(var)
(condition)
] @variable.builtin
[
(file)
(mask)
] @string.special.path
[
(string_literal)
(quoted_string_literal)
] @string
(directive
(variable
(keyword) @variable.parameter))
(location_route) @string.special
";" @punctuation.delimiter
[
(numeric_literal)
(time)
(size)
(cpumask)
] @number
[
"{"
"}"
] @punctuation.bracket

View file

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