Skip to content

Commit

Permalink
analyser: restart parsing tokens after more symbol chars
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie-git committed Feb 18, 2022
1 parent 0ece7cd commit 97e8438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cardstock/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def RunAnalysis(self):
def GetTypeFromLeadingString(self, handlerObj, leadingStr):
""" Return the parent type, parent obj, type, and object of the last token in leadingStr """
cleaned = re.sub(r'\([^)]*\)', '', leadingStr)
for c in ' ()[{/':
for c in ' ()[{/+-*%:<>,':
cleaned = cleaned.split(c)[-1]
parts = cleaned.split('.')

Expand Down

0 comments on commit 97e8438

Please sign in to comment.