mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(ruby): improve identifiers highlighting
This commit is contained in:
parent
b6a6d8997c
commit
66a7655a5e
1 changed files with 6 additions and 3 deletions
|
|
@ -125,9 +125,12 @@
|
|||
"__callee__" "__dir__" "__id__" "__method__" "__send__" "__ENCODING__" "__FILE__" "__LINE__"))
|
||||
|
||||
((identifier) @function.builtin
|
||||
(#any-of? @function.builtin
|
||||
"include" "extend" "prepend" "attr_reader" "attr_writer" "attr_accessor" "module_function"
|
||||
"refine" "using"))
|
||||
(#any-of? @function.builtin "attr_reader" "attr_writer" "attr_accessor" "module_function"))
|
||||
|
||||
((call
|
||||
!receiver
|
||||
method: (identifier) @function.builtin)
|
||||
(#any-of? @function.builtin "include" "extend" "prepend" "refine" "using"))
|
||||
|
||||
((identifier) @keyword.exception
|
||||
(#any-of? @keyword.exception "raise" "fail" "catch" "throw"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue