From 6ef5b529c858b59b8a185ea2980ace997f29c917 Mon Sep 17 00:00:00 2001 From: Arthur Deierlein Date: Sun, 17 Mar 2024 19:11:13 +0100 Subject: [PATCH] correctly highlight hash_pair --- runtime/queries/glimmer/highlights.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/runtime/queries/glimmer/highlights.scm b/runtime/queries/glimmer/highlights.scm index 973ebea1fca1..31b2307ab668 100644 --- a/runtime/queries/glimmer/highlights.scm +++ b/runtime/queries/glimmer/highlights.scm @@ -72,7 +72,12 @@ ((helper_invocation helper: (identifier) @keyword.control.conditional) (#match? @keyword.control.conditional "yield")) -(hash_pair key: (identifier) @variable.parameter) +(hash_pair key: (identifier) @variable) +(hash_pair value: (identifier) @variable) +(hash_pair [ + (path_expression (identifier) @variable) + (identifier) @variable + ]) (comment_statement) @comment