diff options
| author | Jeffrey Chupp <jeff@semanticart.com> | 2021-01-25 13:49:39 -0500 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-01-25 21:39:29 +0100 |
| commit | 76d4a2a0c4883ee9ed4f4f17773e067836f2153d (patch) | |
| tree | 1733f9f996e535348ab6ab94421b109f9b1a3af0 /queries/ruby | |
| parent | 6d2b1fc56679038fb839b7f7707b65808ff5d9e4 (diff) | |
Highlight ruby symbols as @property
Distinguish from @constant. Closes #874
Diffstat (limited to 'queries/ruby')
| -rw-r--r-- | queries/ruby/highlights.scm | 5 |
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 |
