aboutsummaryrefslogtreecommitdiffstats
path: root/queries/ruby
diff options
context:
space:
mode:
authorSteven Sojka <steelsojka@gmail.com>2020-08-16 11:24:10 -0500
committerKiyan Yazdani <yazdani.kiyan@protonmail.com>2020-08-16 18:31:56 +0200
commitce43dbf54cdc017e6885381f38ea056f78c4e55b (patch)
tree27a4e0475002d2e3845e942cab8d57aeea679bff /queries/ruby
parentMerge pull request #296 from steelsojka/feat-is-predicate (diff)
downloadnvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.gz
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.bz2
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.lz
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.xz
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.tar.zst
nvim-treesitter-ce43dbf54cdc017e6885381f38ea056f78c4e55b.zip
fix(queries): use vim-match for non lua regexes
Diffstat (limited to 'queries/ruby')
-rw-r--r--queries/ruby/highlights.scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/queries/ruby/highlights.scm b/queries/ruby/highlights.scm
index d7d880043..fe79af423 100644
--- a/queries/ruby/highlights.scm
+++ b/queries/ruby/highlights.scm
@@ -38,7 +38,7 @@
((identifier) @keyword
- (#match? @keyword "^(private|protected|public)$"))
+ (#vim-match? @keyword "^(private|protected|public)$"))
; Function calls
@@ -85,14 +85,14 @@
; Identifiers
[
(class_variable)
- (instance_variable)
+ (instance_variable)
] @label
((identifier) @constant.builtin
- (#match? @constant.builtin "^__(FILE|LINE|ENCODING)__$"))
+ (#vim-match? @constant.builtin "^__(FILE|LINE|ENCODING)__$"))
((constant) @constant.macro
- (#match? @constant.macro "^[A-Z\\d_]+$"))
+ (#vim-match? @constant.macro "^[A-Z\\d_]+$"))
(constant) @constant
@@ -175,7 +175,7 @@
"{"
"}"
"%w("
- "%i("
+ "%i("
] @punctuation.bracket
(ERROR) @error