From 03f0ef93ac6da58963b32034fd4681e428867d2a Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Wed, 17 Aug 2022 16:20:44 -0500 Subject: [PATCH] Update tree-sitter-rust to latest There don't appear to be any regressions from the updates. Also included is a fix which highlights the "#" as in attributes as punctuation. This was previously unhighlighted. --- languages.toml | 2 +- runtime/queries/rust/highlights.scm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index 264f0a422..05608b813 100644 --- a/languages.toml +++ b/languages.toml @@ -50,7 +50,7 @@ args = { attachCommands = [ "platform select remote-gdb-server", "platform conne [[grammar]] name = "rust" -source = { git = "https://github.com/tree-sitter/tree-sitter-rust", rev = "a360da0a29a19c281d08295a35ecd0544d2da211" } +source = { git = "https://github.com/tree-sitter/tree-sitter-rust", rev = "41e23b454f503e6fe63ec4b6d9f7f2cf7788ab8e" } [[language]] name = "toml" diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm index 5de92a607..39a764a6f 100644 --- a/runtime/queries/rust/highlights.scm +++ b/runtime/queries/rust/highlights.scm @@ -67,6 +67,7 @@ "]" "{" "}" + "#" ] @punctuation.bracket (type_arguments [