parsers.py
: Account in-line comments after ,
Some charters don't follow the spec! >:V
This commit is contained in:
parent
4b194e5f71
commit
235448b4ab
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user