From ee06d4d337af7a46de294d88c00104b2ae836455 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Wed, 23 Nov 2022 16:27:26 -0600 Subject: [PATCH] Update tree-sitter-gleam This update includes a handful of fixes, a new binary concatenation operator (already highlighted by the `binary_operator` rule), and a new `use` language construct. The nodes are backwards compatible but this update introduces two new nodes for highlighting: `use` and `<-`. --- languages.toml | 2 +- runtime/queries/gleam/highlights.scm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index f6a238f4..0d90c3f7 100644 --- a/languages.toml +++ b/languages.toml @@ -1263,7 +1263,7 @@ language-server = { command = "gleam", args = ["lsp"] } [[grammar]] name = "gleam" -source = { git = "https://github.com/gleam-lang/tree-sitter-gleam", rev = "d7861b2a4b4d594c58bb4f1be5f1f4ee4c67e5c3" } +source = { git = "https://github.com/gleam-lang/tree-sitter-gleam", rev = "d6cbdf3477fcdb0b4d811518a356f9b5cd1795ed" } [[language]] name = "ron" diff --git a/runtime/queries/gleam/highlights.scm b/runtime/queries/gleam/highlights.scm index 8cff6b51..34b3ce65 100644 --- a/runtime/queries/gleam/highlights.scm +++ b/runtime/queries/gleam/highlights.scm @@ -80,6 +80,7 @@ "todo" "try" "type" + "use" ] @keyword ; Punctuation @@ -103,4 +104,5 @@ "->" ".." "-" + "<-" ] @punctuation.delimiter