Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/nginx/highlights.scm')
-rw-r--r--runtime/queries/nginx/highlights.scm45
1 files changed, 45 insertions, 0 deletions
diff --git a/runtime/queries/nginx/highlights.scm b/runtime/queries/nginx/highlights.scm
new file mode 100644
index 00000000..2b6dd347
--- /dev/null
+++ b/runtime/queries/nginx/highlights.scm
@@ -0,0 +1,45 @@
+(comment) @comment
+
+(block_directive
+ (directive) @type)
+
+[
+ "{"
+ "}"
+ "("
+ ")"
+ "["
+ "]"
+] @punctuation.bracket
+
+(simple_directive
+ (directive) @function)
+
+[
+ ";"
+] @punctuation.delimiter
+
+((generic) @keyword
+ (#any-of? @keyword
+ "on"
+ "off"
+ "any"
+ "auto"))
+
+(modifier) @operator
+
+(generic) @variable
+
+(string) @string
+
+(number) @constant.numeric
+(metric) @constant.numeric
+
+(variable) @variable.parameter
+
+(regex) @string
+
+(modifier) @keyword.operator
+
+(lua_block_directive
+ "access_by_lua_block" @function)