From 286e44050d838adcf6ff1b2bdb82653a5420cd45 Mon Sep 17 00:00:00 2001 From: "J. Brock" Date: Fri, 4 Aug 2023 10:19:26 -0400 Subject: [PATCH] Bump the version of Hare's grammar (#7784) --- languages.toml | 2 +- runtime/queries/hare/highlights.scm | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/languages.toml b/languages.toml index 4fe024203..c51d65062 100644 --- a/languages.toml +++ b/languages.toml @@ -1724,7 +1724,7 @@ indent = { tab-width = 8, unit = "\t" } [[grammar]] name = "hare" -source = { git = "https://git.sr.ht/~ecmma/tree-sitter-hare", rev = "bc26a6a949f2e0d98b7bfc437d459b250900a165" } +source = { git = "https://git.sr.ht/~ecmma/tree-sitter-hare", rev = "2495958aaf3f93581c87ec020164255e80655331" } [[language]] name = "devicetree" diff --git a/runtime/queries/hare/highlights.scm b/runtime/queries/hare/highlights.scm index cd3c1d0a0..4b9731488 100644 --- a/runtime/queries/hare/highlights.scm +++ b/runtime/queries/hare/highlights.scm @@ -36,7 +36,10 @@ "break" ] @keyword.control.repeat -"return" @keyword.control.return +[ + "return" + "yield" +] @keyword.control.return [ "abort"