mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
||||
|
||||
(identifier) @variable
|
||||
(global_variable) @variable.global
|
||||
|
||||
|
|
@ -51,8 +52,8 @@
|
|||
|
||||
(constant) @type
|
||||
|
||||
((identifier) @keyword
|
||||
(#vim-match? @keyword "^(private|protected|public)$"))
|
||||
((identifier) @type.qualifier
|
||||
(#any-of? @type.qualifier "private" "protected" "public"))
|
||||
|
||||
[
|
||||
"rescue"
|
||||
|
|
@ -60,7 +61,7 @@
|
|||
] @exception
|
||||
|
||||
((identifier) @exception
|
||||
(#vim-match? @exception "^(fail|raise)$"))
|
||||
(#any-of? @exception "fail" "raise"))
|
||||
|
||||
; Function calls
|
||||
|
||||
|
|
@ -77,7 +78,7 @@
|
|||
(program
|
||||
(call
|
||||
(identifier) @include)
|
||||
(#vim-match? @include "^(require|require_relative|load)$"))
|
||||
(#any-of? @include "require" "require_relative" "load"))
|
||||
|
||||
; Function definitions
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue