summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/parsermodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index e0c7431..fd03067 100644
--- a/Modules/parsermodule.c
+++ b/Modules/parsermodule.c
@@ -1440,6 +1440,7 @@ validate_expr_stmt(node *tree)
|| strcmp(s, "-=") == 0
|| strcmp(s, "*=") == 0
|| strcmp(s, "/=") == 0
+ || strcmp(s, "//=") == 0
|| strcmp(s, "%=") == 0
|| strcmp(s, "&=") == 0
|| strcmp(s, "|=") == 0
@@ -2095,6 +2096,7 @@ validate_term(node *tree)
for ( ; res && (pos < nch); pos += 2)
res = (((TYPE(CHILD(tree, pos)) == STAR)
|| (TYPE(CHILD(tree, pos)) == SLASH)
+ || (TYPE(CHILD(tree, pos)) == DOUBLESLASH)
|| (TYPE(CHILD(tree, pos)) == PERCENT))
&& validate_factor(CHILD(tree, pos + 1)));