aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ. Brock2023-08-04 14:19:26 +0000
committerGitHub2023-08-04 14:19:26 +0000
commit286e44050d838adcf6ff1b2bdb82653a5420cd45 (patch)
tree047a823bf266ea8ca0ac36423af3abd52472de77
parentd5af4ae6b39d7c39b139aaa22cb867b49a38f735 (diff)
Bump the version of Hare's grammar (#7784)
-rw-r--r--languages.toml2
-rw-r--r--runtime/queries/hare/highlights.scm5
2 files changed, 5 insertions, 2 deletions
diff --git a/languages.toml b/languages.toml
index 4fe02420..c51d6506 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 cd3c1d0a..4b973148 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"