From 64389f97fe8e226a0bcf19cdc292eaf7d42478af Mon Sep 17 00:00:00 2001 From: Erasin Wang Date: Mon, 18 Mar 2024 07:01:25 +0800 Subject: Updated grammar for hurl 4 (#9775) --- languages.toml | 3 ++- runtime/queries/hurl/highlights.scm | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/languages.toml b/languages.toml index e4684298..69146841 100644 --- a/languages.toml +++ b/languages.toml @@ -2901,11 +2901,12 @@ scope = "source.hurl" injection-regex = "hurl" file-types = ["hurl"] comment-token = "#" +formatter = { command = "hurlfmt" } indent = { tab-width = 2, unit = " " } [[grammar]] name = "hurl" -source = { git = "https://github.com/pfeiferj/tree-sitter-hurl", rev = "264c42064b61ee21abe88d0061f29a0523352e22" } +source = { git = "https://github.com/pfeiferj/tree-sitter-hurl", rev = "cd1a0ada92cc73dd0f4d7eedc162be4ded758591" } [[language]] name = "markdoc" diff --git a/runtime/queries/hurl/highlights.scm b/runtime/queries/hurl/highlights.scm index c066b284..a2037637 100644 --- a/runtime/queries/hurl/highlights.scm +++ b/runtime/queries/hurl/highlights.scm @@ -51,6 +51,20 @@ "sha256" "md5" "bytes" + "daysAfterNow" + "daysBeforeNow" + "htmlEscape" + "htmlUnescape" + "decode" + "format" + "nth" + "replace" + "split" + "toDate" + "toInt" + "urlEncode" + "urlDecode" + "count" ] @function.builtin (filter) @attribute @@ -59,8 +73,11 @@ [ "null" "cacert" + "compressed" "location" "insecure" + "path-as-is" + "proxy" "max-redirs" "retry" "retry-interval" @@ -124,4 +141,4 @@ "base64," "file," "hex," -] @string.special \ No newline at end of file +] @string.special -- cgit v1.2.3-70-g09d2