mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
highlights(ruby): fix captures
This commit is contained in:
parent
7d7feb859a
commit
be2b89edc8
1 changed files with 5 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
; Variables
|
; Variables
|
||||||
|
|
||||||
(identifier) @variable
|
(identifier) @variable
|
||||||
(global_variable) @variable.global
|
(global_variable) @variable.global
|
||||||
|
|
||||||
|
|
@ -51,8 +52,8 @@
|
||||||
|
|
||||||
(constant) @type
|
(constant) @type
|
||||||
|
|
||||||
((identifier) @keyword
|
((identifier) @type.qualifier
|
||||||
(#vim-match? @keyword "^(private|protected|public)$"))
|
(#any-of? @type.qualifier "private" "protected" "public"))
|
||||||
|
|
||||||
[
|
[
|
||||||
"rescue"
|
"rescue"
|
||||||
|
|
@ -60,7 +61,7 @@
|
||||||
] @exception
|
] @exception
|
||||||
|
|
||||||
((identifier) @exception
|
((identifier) @exception
|
||||||
(#vim-match? @exception "^(fail|raise)$"))
|
(#any-of? @exception "fail" "raise"))
|
||||||
|
|
||||||
; Function calls
|
; Function calls
|
||||||
|
|
||||||
|
|
@ -77,7 +78,7 @@
|
||||||
(program
|
(program
|
||||||
(call
|
(call
|
||||||
(identifier) @include)
|
(identifier) @include)
|
||||||
(#vim-match? @include "^(require|require_relative|load)$"))
|
(#any-of? @include "require" "require_relative" "load"))
|
||||||
|
|
||||||
; Function definitions
|
; Function definitions
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue