Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: Danila Fedorin <[email protected]>
  • Loading branch information
DanilaFe committed Jun 10, 2024
1 parent 8541ba3 commit 3f02de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/chpl-language-server/src/chpl-language-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def is_literal_like(node: chapel.AstNode) -> bool:

if isinstance(node, chapel.OpCall):
# A complex number is far from a literal in the AST; in fact, it
# potentially has as many as 4 AST nodes: -1 - 2i has a unary negation,
# potentially has as many as 4 AST nodes: -1 + 2i has a unary negation,
# an addition, and two "pure" literals.
op = node.op()
if (op == "+" or op == "-") and node.num_actuals() == 2:
Expand Down

0 comments on commit 3f02de9

Please sign in to comment.