feat(ruby): improve identifiers highlighting

This commit is contained in:
Jerome Dalbert 2024-09-11 05:45:19 -07:00 committed by Christian Clason
parent b6a6d8997c
commit 66a7655a5e

View file

@ -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"))