Skip to content

Commit

Permalink
Updated grammar for hurl 4 (helix-editor#9775)
Browse files Browse the repository at this point in the history
  • Loading branch information
erasin authored and mtoohey31 committed Jun 2, 2024
1 parent 34c94c9 commit 23719f4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
19 changes: 18 additions & 1 deletion runtime/queries/hurl/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -59,8 +73,11 @@
[
"null"
"cacert"
"compressed"
"location"
"insecure"
"path-as-is"
"proxy"
"max-redirs"
"retry"
"retry-interval"
Expand Down Expand Up @@ -124,4 +141,4 @@
"base64,"
"file,"
"hex,"
] @string.special
] @string.special

0 comments on commit 23719f4

Please sign in to comment.