Skip to content

Commit 0a507a5

Browse files
committed
Allowing nonlocal as class-statement
1 parent 0f6f43a commit 0a507a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/main/grammars/de/monticore/Python.mc4‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ grammar Python extends MultilineString, // Must be first to avoid conflicts wit
214214
);
215215

216216
GlobalVariableDeclaration implements Statement,ClassStatement = "global" names:(Name || ",")+ STATEMENT_END;
217-
NonLocalVariableDeclaration implements Statement = "nonlocal" names:(Name || ",")+ STATEMENT_END;
217+
NonLocalVariableDeclaration implements Statement,ClassStatement = "nonlocal" names:(Name || ",")+ STATEMENT_END;
218218
MultiVariableDeclaration implements Statement,ClassStatement = (Name || ",")+ ","? "=" (Expression || "," )+ ","? STATEMENT_END;
219219
ParenMultiVariableDeclaration implements Statement,ClassStatement = "(" (Name || ",")+ ","? ")" "=" (Expression || "," )+ ","? STATEMENT_END;
220220
interface VariableInit ;

0 commit comments

Comments
 (0)