mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
Highlight ruby symbols as @property
Distinguish from @constant. Closes #874
This commit is contained in:
parent
6d2b1fc566
commit
76d4a2a0c4
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue