aboutsummaryrefslogtreecommitdiffstats
path: root/queries/ruby
diff options
context:
space:
mode:
authorDennis B <bluz71@users.noreply.github.com>2021-02-28 15:24:16 +1100
committerStephan Seitz <stephan.lauf@yahoo.de>2021-03-04 06:19:40 +0100
commitaca33c0acac29b63c570f079cc06a5458e6ac94c (patch)
tree65ec21823217b252d13148a1c3ba86b409d10778 /queries/ruby
parent[docgen] Update README.md (diff)
downloadnvim-treesitter-aca33c0acac29b63c570f079cc06a5458e6ac94c.tar
nvim-treesitter-aca33c0acac29b63c570f079cc06a5458e6ac94c.tar.gz
nvim-treesitter-aca33c0acac29b63c570f079cc06a5458e6ac94c.tar.bz2
nvim-treesitter-aca33c0acac29b63c570f079cc06a5458e6ac94c.tar.lz
nvim-treesitter-aca33c0acac29b63c570f079cc06a5458e6ac94c.tar.xz
nvim-treesitter-aca33c0acac29b63c570f079cc06a5458e6ac94c.tar.zst
nvim-treesitter-aca33c0acac29b63c570f079cc06a5458e6ac94c.zip
[highlights] Add TSSymbol highlight group
Addresses issue #892 Ruby and Dart literal symbols will now be highlighted by the new TSSymbol highlight group, which itself will, by default, link to the Vim Identifier highlight group. Vim theme authors can then set their TSSymbol colors. Symbol highlighting can apply to a number of languages as noted in the following Wikipedia page: https://en.wikipedia.org/wiki/Symbol_(programming) Not just for Ruby and Dart.
Diffstat (limited to 'queries/ruby')
-rw-r--r--queries/ruby/highlights.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm
index e77687920..3437605c1 100644
--- a/queries/ruby/highlights.scm
+++ b/queries/ruby/highlights.scm
@@ -144,7 +144,7 @@
(simple_symbol)
(delimited_symbol)
(hash_key_symbol)
- ] @property
+ ] @symbol
(pair key: (hash_key_symbol) ":" @constant)
(regex) @string.regex