Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/pip-requirements/highlights.scm')
-rw-r--r--runtime/queries/pip-requirements/highlights.scm41
1 files changed, 41 insertions, 0 deletions
diff --git a/runtime/queries/pip-requirements/highlights.scm b/runtime/queries/pip-requirements/highlights.scm
new file mode 100644
index 00000000..6036e301
--- /dev/null
+++ b/runtime/queries/pip-requirements/highlights.scm
@@ -0,0 +1,41 @@
+(comment) @comment
+
+(requirement (package) @variable)
+(extras (package) @variable.parameter)
+
+; "==" | ">" | "<" | ">=" | "<="
+(version_cmp) @operator
+
+(version) @constant.numeric
+
+(marker_var) @attribute
+
+(marker_op) @keyword.operator
+
+[
+ "[" "]"
+ "(" ")"
+] @punctuation.bracket
+
+[
+ ","
+ ";"
+ "@"
+] @punctuation.delimiter
+
+[
+ "${" "}"
+] @punctuation.special
+
+"=" @operator
+
+(path) @string.special.path
+(url) @string.special.url
+
+(option) @function
+
+(env_var) @constant
+
+(quoted_string) @string
+
+(linebreak) @constant.character.escape