Skip to content

Commit

Permalink
More pointer/mult stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
N01ch committed Aug 27, 2021
1 parent 453b148 commit 1a5a78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion norminette/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def is_operator(self, pos):
if self.check_token(pos, "IDENTIFIER") is True and self.check_token(pos + 1, "TAB") is True:
return False
return True
if self.check_token(pos, ["COMMA", "LPARENTHESIS"] + operators) is True and skip == 1 and self.parenthesis_contain(pos + 1)[0] != "cast":
if self.check_token(pos, ["COMMA", "LPARENTHESIS", "LBRACKET"] + operators) is True and skip == 1 and self.parenthesis_contain(pos + 1)[0] != "cast":
return True
if self.check_token(pos, ["LBRACKET", "LPARENTHESIS", "MULT", "BWISE_AND", "COMMA"] + operators + types):
return False
Expand Down

0 comments on commit 1a5a78c

Please sign in to comment.