🐐 Escape sequences

This commit is contained in:
2026-04-22 11:27:19 +02:00
parent 8c69a300a5
commit 940f8d7311
4 changed files with 109 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ builtin_tokens = [("BUILTIN", i) for i in [
]]
data_tokens = [
("DATA_STRING", r"(\".*?\"|'.*?')"),
("DATA_STRING", r'("(?:[^"\\]|\\.)*"|' + r"'(?:[^'\\]|\\.)*')"),
("DATA_FRACTION", r"([IVXLCDM][IVXLCDM_]*)?([S][S:.|]*|:[S:.|]+|\.[S:.|]*)"),
("DATA_NUMERAL", r"[IVXLCDM][IVXLCDM_]*")
]