depot/third_party/nixpkgs/pkgs/development/python-modules/samarium/crossandra-2-fix.patch
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

18 lines
712 B
Diff

--- a/src/samarium/tokenizer.py 2024-06-07 13:07:38.731314161 +0200
+++ b/src/samarium/tokenizer.py 2024-06-07 13:08:11.674488226 +0200
@@ -26,12 +26,12 @@
Token,
ignore_whitespace=True,
rules=[
- Rule(r"==<.*>==", converter=False, flags=re.M | re.S),
- Rule(r"==[^\n]*", converter=False, flags=re.M | re.S),
+ Rule(r"==<.*>==", flags=re.M | re.S, ignore=True),
+ Rule(r"==[^\n]*", flags=re.M | re.S, ignore=True),
Rule(
common.DOUBLE_QUOTED_STRING.pattern,
lambda x: x.replace("\n", r"\n"),
- re.S,
+ flags=re.S,
),
Rule(rf"{SM_BIT}+`?{SM_BIT}*|`{SM_BIT}*", to_number),
Rule(r"\w+"),