From 76d4a2a0c4883ee9ed4f4f17773e067836f2153d Mon Sep 17 00:00:00 2001 From: Jeffrey Chupp Date: Mon, 25 Jan 2021 13:49:39 -0500 Subject: Highlight ruby symbols as @property Distinguish from @constant. Closes #874 --- queries/ruby/highlights.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'queries/ruby') 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 -- cgit v1.2.3-70-g09d2