diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm index fccc911a3..9c39999f8 100644 --- a/queries/ruby/highlights.scm +++ b/queries/ruby/highlights.scm @@ -193,11 +193,12 @@ (hash_key_symbol) ] @string.special.symbol -(delimited_symbol +(delimited_symbol (string_content) @string.special.symbol) ; Ensure "symbol" highlight has priority over "string" highlight for closing " char. -((delimited_symbol) @string.special.symbol (#set! priority 101)) +((delimited_symbol) @string.special.symbol + (#set! priority 101)) (regex (string_content) @string.regexp)