Skip to content

Commit 9933323

Browse files
committed
fix flake8 non-sense about \ in string literal
1 parent c0b1dfd commit 9933323

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mtl/parser.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@
3939
4040
const_or_unbound = const / "inf" / id
4141
42-
AP = ~r"[a-z][a-z\d]*"
42+
AP = ~r"[a-z][a-z\\d]*"
4343
4444
bot = "FALSE"
4545
top = "TRUE"
4646
47-
id = ~r"[a-z\d]+"
48-
const = ~r"[-+]?(\d*\.\d+|\d+)"
49-
_ = ~r"\s"+
50-
__ = ~r"\s"*
47+
id = ~r"[a-z\\d]+"
48+
const = ~r"[-+]?(\\d*\\.\\d+|\\d+)"
49+
_ = ~r"\\s"+
50+
__ = ~r"\\s"*
5151
EOL = "\\n"
5252
''')
5353

0 commit comments

Comments
 (0)