diff --git a/languages.toml b/languages.toml index 26cd76fd..7135b804 100644 --- a/languages.toml +++ b/languages.toml @@ -3785,7 +3785,7 @@ indent = { tab-width = 2, unit = " " } [[grammar]] name = "hurl" -source = { git = "https://github.com/pfeiferj/tree-sitter-hurl", rev = "1124058cd192e80d80914652a5850a5b1887cc10" } +source = { git = "https://github.com/pfeiferj/tree-sitter-hurl", rev = "597efbd7ce9a814bb058f48eabd055b1d1e12145" } [[language]] name = "markdoc" diff --git a/runtime/queries/hurl/highlights.scm b/runtime/queries/hurl/highlights.scm index a141c41a..0dbadfd5 100644 --- a/runtime/queries/hurl/highlights.scm +++ b/runtime/queries/hurl/highlights.scm @@ -73,22 +73,13 @@ (filter) @attribute (version) @string.special -[ - "null" - "cacert" - "compressed" - "location" - "insecure" - "path-as-is" - "proxy" - "max-redirs" - "retry" - "retry-interval" - "retry-max-count" - (variable_option "variable") - "verbose" - "very-verbose" -] @constant.builtin +"null" @constant.builtin + +; Option keys (location, max-time, retry, cert, user, … and the many added in +; newer hurl): the grammar generalised per-option nodes into boolean/integer/ +; string/duration options with an `option_key` field — capture that field so +; every option key is covered uniformly instead of listing each by name. +(_ option_key: _ @constant.builtin) (boolean) @constant.builtin.boolean