fix: prefer #eq? for checking equality with one string

This commit is contained in:
Riley Bruins 2025-10-29 17:32:07 -07:00
parent 4a9f57971a
commit b141b80dd1
9 changed files with 19 additions and 15 deletions

View file

@ -327,7 +327,7 @@ port_name: (simple_identifier) @variable
(method_call_body
arguments: (list_of_arguments
(expression) @variable.builtin
(#any-of? @variable.builtin "this")))
(#eq? @variable.builtin "this")))
(implicit_class_handle) @variable.builtin