diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm index 80715e67c..6dd99a25c 100644 --- a/queries/ruby/highlights.scm +++ b/queries/ruby/highlights.scm @@ -138,10 +138,13 @@ (bare_symbol) (heredoc_beginning) (heredoc_end) + ] @constant + +[ (simple_symbol) (delimited_symbol) (hash_key_symbol) - ] @constant + ] @property (pair key: (hash_key_symbol) ":" @constant) (regex) @string.regex