From 291af0989b81a8771ee4413c80c263ab7cce92ca Mon Sep 17 00:00:00 2001 From: eig114 Date: Tue, 27 Sep 2022 15:11:53 +0300 Subject: [PATCH] ignore comment chars inside string. --- xx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xx.py b/xx.py index f3b8db1..1d73d71 100644 --- a/xx.py +++ b/xx.py @@ -111,6 +111,7 @@ def parseXX(xxFile): for line in xxFile: origLine = line lineNum = lineNum + 1 + line = parseString(line) multilineComment, joinedLine, line, mustContinue = filterMultLineComments(multilineComment, joinedLine, line) if mustContinue: continue @@ -118,7 +119,6 @@ def parseXX(xxFile): for comment in comments: if comment in line: line = line.split(comment)[0] - line = parseString(line) line = filterIgnored(line) xxOut += bytes.fromhex(line) except Exception as e: