mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
fix(rbs): fix highlight queries of rbs that is missing some definitions
This commit is contained in:
parent
fae21737be
commit
57713d079c
1 changed files with 19 additions and 0 deletions
|
|
@ -54,9 +54,24 @@
|
||||||
(method_name
|
(method_name
|
||||||
[
|
[
|
||||||
(identifier)
|
(identifier)
|
||||||
|
(identifier_suffix)
|
||||||
(constant)
|
(constant)
|
||||||
|
(constant_suffix)
|
||||||
(operator)
|
(operator)
|
||||||
(setter)
|
(setter)
|
||||||
|
(constant_setter)
|
||||||
|
] @function.method))
|
||||||
|
|
||||||
|
(attribute_member
|
||||||
|
(method_name
|
||||||
|
[
|
||||||
|
(identifier)
|
||||||
|
(identifier_suffix)
|
||||||
|
(constant)
|
||||||
|
(constant_suffix)
|
||||||
|
(operator)
|
||||||
|
(setter)
|
||||||
|
(constant_setter)
|
||||||
] @function.method))
|
] @function.method))
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -115,6 +130,10 @@
|
||||||
(type
|
(type
|
||||||
(integer_literal) @number)
|
(integer_literal) @number)
|
||||||
|
|
||||||
|
(type
|
||||||
|
(record_type
|
||||||
|
key: (record_key) @string.special.symbol))
|
||||||
|
|
||||||
; Operators
|
; Operators
|
||||||
[
|
[
|
||||||
"="
|
"="
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue