summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Chupp <jeff@semanticart.com>2021-01-25 13:49:39 -0500
committerStephan Seitz <stephan.lauf@yahoo.de>2021-01-25 21:39:29 +0100
commit76d4a2a0c4883ee9ed4f4f17773e067836f2153d (patch)
tree1733f9f996e535348ab6ab94421b109f9b1a3af0
parent6d2b1fc56679038fb839b7f7707b65808ff5d9e4 (diff)
Highlight ruby symbols as @property
Distinguish from @constant. Closes #874
-rw-r--r--queries/ruby/highlights.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm
index 80715e67..6dd99a25 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