Skip to content

Commit ebf96bd

Browse files
authored
Updated python/locals.scm to label self and cls as variable.buitin (#13552)
1 parent 5a1dcc2 commit ebf96bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runtime/queries/python/locals.scm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
(parameters
2727
(dictionary_splat_pattern ; **kwargs
2828
(identifier) @local.definition.variable.parameter))
29+
(parameters
30+
(identifier) @local.definition.variable.builtin
31+
(#any-of? @local.definition.variable.builtin "self" "cls")) ; label self/cls as builtin
2932

3033
(lambda_parameters
3134
(identifier) @local.definition.variable.parameter)

0 commit comments

Comments
 (0)