Skip to content

Commit 508f598

Browse files
committed
ignore comment chars inside string.
1 parent 6ad58de commit 508f598

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,14 @@ def parseXX(xxFile):
105105
for line in xxFile:
106106
origLine = line
107107
lineNum = lineNum + 1
108+
line = parseString(line)
108109
multilineComment, joinedLine, line, mustContinue = filterMultLineComments(multilineComment, joinedLine, line)
109110
if mustContinue:
110111
continue
111112
try:
112113
for comment in comments:
113114
if comment in line:
114115
line = line.split(comment)[0]
115-
line = parseString(line)
116116
line = filterComments(line)
117117
xxOut += bytes.fromhex(line)
118118
except Exception as e:

0 commit comments

Comments
 (0)