aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/hurl/highlights.scm
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-06-12 09:54:30 -0600
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:40 +0200
commit692b051b09935653befdb8f7ba8afdb640adf17b (patch)
tree167162b6b129ae04f68c5735078521a72917c742 /runtime/queries/hurl/highlights.scm
parentfeat(c-family): inherit injections (diff)
downloadnvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.gz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.bz2
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.lz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.xz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.zst
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.zip
feat!: drop modules, general refactor and cleanup
Diffstat (limited to 'runtime/queries/hurl/highlights.scm')
-rw-r--r--runtime/queries/hurl/highlights.scm148
1 files changed, 148 insertions, 0 deletions
diff --git a/runtime/queries/hurl/highlights.scm b/runtime/queries/hurl/highlights.scm
new file mode 100644
index 000000000..70b220985
--- /dev/null
+++ b/runtime/queries/hurl/highlights.scm
@@ -0,0 +1,148 @@
+; highlights.scm
+[
+ (key_string)
+ (json_key_string)
+] @property
+
+[
+ "[QueryStringParams]"
+ "[FormParams]"
+ "[MultipartFormData]"
+ "[Cookies]"
+ "[Captures]"
+ "[Asserts]"
+ "[Options]"
+ "[BasicAuth]"
+] @module
+
+[
+ "\\"
+ (regex_escaped_char)
+ (quoted_string_escaped_char)
+ (key_string_escaped_char)
+ (value_string_escaped_char)
+ (oneline_string_escaped_char)
+ (multiline_string_escaped_char)
+ (filename_escaped_char)
+ (json_string_escaped_char)
+] @string.escape
+
+[
+ "status"
+ "url"
+ "header"
+ "cookie"
+ "body"
+ "xpath"
+ "jsonpath"
+ "regex"
+ "variable"
+ "duration"
+ "sha256"
+ "md5"
+ "bytes"
+] @function.builtin
+
+[
+ "null"
+ "cacert"
+ "compressed"
+ "location"
+ "insecure"
+ "path-as-is"
+ "proxy"
+ "max-redirs"
+ "retry"
+ "retry-interval"
+ "retry-max-count"
+ "verbose"
+ "very-verbose"
+] @constant.builtin
+
+(variable_option
+ "variable" @constant.builtin)
+
+(boolean) @boolean
+
+(variable_name) @variable
+
+[
+ "not"
+ "equals"
+ "notEquals"
+ "greaterThan"
+ "greaterThanOrEquals"
+ "lessThan"
+ "lessThanOrEquals"
+ "startsWith"
+ "endsWith"
+ "contains"
+ "matches"
+ "exists"
+ "includes"
+ "isInteger"
+ "isFloat"
+ "isBoolean"
+ "isString"
+ "isCollection"
+] @keyword.operator
+
+[
+ "=="
+ "!="
+ ">"
+ ">="
+ "<"
+ "<="
+] @operator
+
+[
+ (integer)
+ (status)
+] @number
+
+[
+ (float)
+ (json_number)
+] @number.float
+
+[
+ ":"
+ ","
+] @punctuation.delimiter
+
+[
+ "["
+ "]"
+ "{"
+ "}"
+ "{{"
+ "}}"
+] @punctuation.bracket
+
+[
+ (value_string)
+ (quoted_string)
+ (json_string)
+] @string
+
+[
+ "base64,"
+ "hex,"
+ (version)
+] @string.special
+
+[
+ "file,"
+ (file_value)
+] @string.special.path
+
+(regex) @string.regexp
+
+(multiline_string_type) @type
+
+(comment) @comment @spell
+
+(filter) @attribute
+
+(method) @type.builtin