1
0
mirror of synced 2024-11-27 22:40:49 +01:00

parsers.py: Account in-line comments after ,

Some charters don't follow the spec! >:V
This commit is contained in:
Viv 2023-06-02 16:33:48 -04:00
parent 4b194e5f71
commit 235448b4ab

View File

@ -56,7 +56,7 @@ def parseLine(line):
match_comment = re.match(r"//.*", line)
match_header = re.match(r"^([A-Z]+):(.*)", line)
match_command = re.match(r"^#([A-Z]+)(?:\s+(.+))?", line)
match_data = re.match(r"^(([0-9]|A|B|C|F|G)*,?)$", line)
match_data = re.match(r"^(([0-9]|A|B|C|F|G)*,?).*$", line)
if match_comment:
return {"type": 'comment', "value": line}