From 5d5817c2a3d21e91db4eaaf607ff881d71b57638 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 19 May 2021 21:58:54 -0700 Subject: Fancier string escape sequences and a bit of cleanup. --- grammars/python.bp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grammars/python.bp') diff --git a/grammars/python.bp b/grammars/python.bp index 37d6a88..cb5d047 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 '"""' / `" ..%string-escape `" / `' ..%string-escape `' keyword: "and" / "as" / "assert" / "break" / "class" / "continue" / "def" / "del" / "elif" / "else" / "except" / "finally" / "for" / "from" / "global" / "if" / "import" / "in" / "is" / "lambda" / "None" / "nonlocal" / -- cgit v1.2.3