aboutsummaryrefslogtreecommitdiff
path: root/grammars/python.bp
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-20 15:46:21 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-20 15:46:21 -0800
commitb50ad0cad099c99d4e739fc465b69779f661b77d (patch)
treee050a7b9b5dfcae56540a19527e05e918edb93cb /grammars/python.bp
parentb4c8a33a0cbf4938b53458ded4d46efc6e8820ab (diff)
Fixed grammar syntax for `..%`
Diffstat (limited to 'grammars/python.bp')
-rw-r--r--grammars/python.bp4
1 files changed, 2 insertions, 2 deletions
diff --git a/grammars/python.bp b/grammars/python.bp
index d6391bf..13c9251 100644
--- a/grammars/python.bp
+++ b/grammars/python.bp
@@ -7,7 +7,7 @@
# See the accompanying README.md for more info.
comment: `# ..$
-string: "'''".."'''" % \n / '"""'..'"""' % \n / `"..`" % (`\.) / `'..`' % (`\.)
+string: "'''" ..%\n "'''" / '"""' ..%\n '"""' / `" ..%(`\.) `" / `' ..%(`\.) `'
keyword: |("and" / "as" / "assert" / "break" / "class" / "continue" / "def" /
"del" / "elif" / "else" / "except" / "finally" / "for" / "from" /
"global" / "if" / "import" / "in" / "is" / "lambda" / "None" / "nonlocal" /
@@ -17,4 +17,4 @@ class: class-def +(\N ..$)
class-def: ^_|"class"|_id[_parens]_`:
function: function-def +(\N ..$)
function-def: ^_|"def"|_id parens `:
-import: ^_["from"| ..>(|"import"|)%parens] |"import"| ..$%parens
+import: ^_["from"| ..%parens >(|"import"|)] |"import"| ..%parens $