From 994c9c973e0fd771699c3a5c76bee11f9b744c84 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 1 Aug 2021 12:40:27 -0700 Subject: Changed how definitions work --- grammars/python.bp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grammars/python.bp') diff --git a/grammars/python.bp b/grammars/python.bp index 51c3c44..ee749d0 100644 --- a/grammars/python.bp +++ b/grammars/python.bp @@ -8,11 +8,11 @@ comment: `# ..$ string: "'''" ..%\n "'''" / '"""' ..%\n '"""' / `" ..%string-escape `" / `' ..%string-escape `' -keyword: "and" / "as" / "assert" / "break" / "class" / "continue" / "def" / +keyword: ("and" / "as" / "assert" / "break" / "class" / "continue" / "def" / "del" / "elif" / "else" / "except" / "finally" / "for" / "from" / "global" / "if" / "import" / "in" / "is" / "lambda" / "None" / "nonlocal" / "not" / "or" / "pass" / "raise" / "return" / "try" / "while" / - "with" / "yield" + "with" / "yield") class: class-def +(\N ..$) class-def: ^_"class"|_id[_parens]_`: function: function-def +(\N ..$) -- cgit v1.2.3