aboutsummaryrefslogtreecommitdiffstats
path: root/queries/ruby/highlights.scm
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-09-12 20:57:01 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-14 18:27:20 +0200
commitbcf421b4e7f164dfc8aca8a94949adda2bdda10f (patch)
tree2a5d4c5c91f37a81058986bf3d3598beb257d3b6 /queries/ruby/highlights.scm
parentFolds: rename query files to folds.scm to be consistent (diff)
downloadnvim-treesitter-bcf421b4e7f164dfc8aca8a94949adda2bdda10f.tar
nvim-treesitter-bcf421b4e7f164dfc8aca8a94949adda2bdda10f.tar.gz
nvim-treesitter-bcf421b4e7f164dfc8aca8a94949adda2bdda10f.tar.bz2
nvim-treesitter-bcf421b4e7f164dfc8aca8a94949adda2bdda10f.tar.lz
nvim-treesitter-bcf421b4e7f164dfc8aca8a94949adda2bdda10f.tar.xz
nvim-treesitter-bcf421b4e7f164dfc8aca8a94949adda2bdda10f.tar.zst
nvim-treesitter-bcf421b4e7f164dfc8aca8a94949adda2bdda10f.zip
Fix #307: Use and document TSVariable/TSVariableBuiltin in all languages
Diffstat (limited to 'queries/ruby/highlights.scm')
-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 3733279d8..d18dbccdd 100644
--- a/queries/ruby/highlights.scm
+++ b/queries/ruby/highlights.scm
@@ -1,3 +1,6 @@
+; Variables
+(identifier) @variable
+
; Keywords
[
@@ -100,7 +103,7 @@
[
(self)
(super)
- ] @constant.builtin
+ ] @variable.builtin
(method_parameters (identifier) @parameter)
(lambda_parameters (identifier) @parameter)