From e673a904e76ce3f0c8dfe37bef4f63c79debb05e Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 8 Dec 2025 09:26:28 +0100 Subject: [PATCH] Improve capturing of delimited_symbol nodes with string content. --- runtime/queries/ruby/highlights.scm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/runtime/queries/ruby/highlights.scm b/runtime/queries/ruby/highlights.scm index f9991af51..0472df092 100644 --- a/runtime/queries/ruby/highlights.scm +++ b/runtime/queries/ruby/highlights.scm @@ -186,16 +186,13 @@ [ (bare_symbol) (simple_symbol) - (delimited_symbol) (hash_key_symbol) ] @string.special.symbol (delimited_symbol - (string_content) @string.special.symbol) - -; Ensure "symbol" highlight has priority over "string" highlight for closing quote character. -((delimited_symbol) @string.special.symbol - (#set! priority 101)) + ":\"" @string.special.symbol + (string_content) @string.special.symbol + "\"" @string.special.symbol) (regex (string_content) @string.regexp)