Python: update locals

This commit is contained in:
Santos Gallegos 2020-08-15 19:43:43 -05:00 committed by Stephan Seitz
parent d2c5e496c0
commit ed3469b59f

View file

@ -44,13 +44,15 @@
(identifier) @definition.parameter)) (identifier) @definition.parameter))
; Function defines function and scope ; Function defines function and scope
(function_definition ((function_definition
name: (identifier) @definition.function name: (identifier) @definition.function
body: (block (expression_statement (string) @definition.doc)?)) @scope body: (block (expression_statement (string) @definition.doc)?)) @scope
(#set! definition.function.scope "parent"))
(class_definition ((class_definition
name: (identifier) @definition.type) @scope name: (identifier) @definition.type) @scope
(#set! definition.type.scope "parent"))
(class_definition (class_definition
body: (block body: (block