Skip to content

Commit

Permalink
fix(python): lookup variables in operators (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
didroe authored May 21, 2024
1 parent f9fca6c commit 42a98bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/languages/python/analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (analyzer *analyzer) Analyze(node *sitter.Node, visitChildren func() error)
return analyzer.analyzeSubscript(node, visitChildren)
case "call":
return analyzer.analyzeCall(node, visitChildren)
case "argument_list", "expression_statement", "list", "tuple":
case "argument_list", "expression_statement", "list", "tuple", "unary_operator", "binary_operator":
return analyzer.analyzeGenericOperation(node, visitChildren)
case "parenthesized_expression", "interpolation":
return analyzer.analyzeGenericConstruct(node, visitChildren)
Expand Down

0 comments on commit 42a98bc

Please sign in to comment.