NT continue_stmt -> continue to match AST

This commit is contained in:
rocky
2017-12-06 01:45:08 -05:00
parent 7b39002476
commit f8d6998b22
5 changed files with 15 additions and 15 deletions

View File

@@ -20,7 +20,7 @@ def checker(ast, in_loop, errors):
errors.append(error_text)
for node in ast:
if not in_loop and node.kind in ('continue_stmt', 'break_stmt'):
if not in_loop and node.kind in ('continue', 'break_stmt'):
text = str(node)
error_text = '\n# not in loop:\n#\t' + '\n# '.join(text.split("\n"))
errors.append(error_text)