Unnamed repository; edit this file 'description' to name the repository.
Updated python/locals.scm to label `self` and `cls` as `variable.buitin` (#13552)
| -rw-r--r-- | runtime/queries/python/locals.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/queries/python/locals.scm b/runtime/queries/python/locals.scm index 000a3e49..24800870 100644 --- a/runtime/queries/python/locals.scm +++ b/runtime/queries/python/locals.scm @@ -26,6 +26,9 @@ (parameters (dictionary_splat_pattern ; **kwargs (identifier) @local.definition.variable.parameter)) +(parameters + (identifier) @local.definition.variable.builtin + (#any-of? @local.definition.variable.builtin "self" "cls")) ; label self/cls as builtin (lambda_parameters (identifier) @local.definition.variable.parameter) |