aboutsummaryrefslogtreecommitdiffstats
path: root/queries/ruby
diff options
context:
space:
mode:
authorTravonteD <tman1300@aol.com>2020-06-22 11:18:34 -0400
committerThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-06-23 09:28:32 +0200
commit09c2e6e0a73721128b723b9668a8316aebb3a590 (patch)
tree93b5e5660f006e767d444f943b1c339787bd27c3 /queries/ruby
parentrename and finish ft->lang migration (diff)
downloadnvim-treesitter-09c2e6e0a73721128b723b9668a8316aebb3a590.tar
nvim-treesitter-09c2e6e0a73721128b723b9668a8316aebb3a590.tar.gz
nvim-treesitter-09c2e6e0a73721128b723b9668a8316aebb3a590.tar.bz2
nvim-treesitter-09c2e6e0a73721128b723b9668a8316aebb3a590.tar.lz
nvim-treesitter-09c2e6e0a73721128b723b9668a8316aebb3a590.tar.xz
nvim-treesitter-09c2e6e0a73721128b723b9668a8316aebb3a590.tar.zst
nvim-treesitter-09c2e6e0a73721128b723b9668a8316aebb3a590.zip
Fix the ":" in symbols when used in pairs
This fixes the colon not being highlighted when a symbol is represented in a pair like so: symbol: true
Diffstat (limited to 'queries/ruby')
-rw-r--r--queries/ruby/highlights.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm
index 21afbe809..d7d880043 100644
--- a/queries/ruby/highlights.scm
+++ b/queries/ruby/highlights.scm
@@ -131,6 +131,7 @@
(symbol)
] @constant
+(pair key: (symbol) ":" @constant)
(regex) @string.regex
(escape_sequence) @string.escape
(integer) @number