Skip to content
Snippets Groups Projects
Commit f5fb3418 authored by Henning Glawe's avatar Henning Glawe
Browse files

unnamed matcher handling now in annotator

parent c4646c45
Branches
Tags
No related merge requests found
...@@ -78,7 +78,7 @@ class Annotator(object): ...@@ -78,7 +78,7 @@ class Annotator(object):
else: else:
highlighted = minfo['line'] highlighted = minfo['line']
# shorted matcher- and source file names # shorted matcher- and source file names
name = minfo['name'][-self._formatNameWidth:] name = minfo['name'][-self._formatNameWidth:] if minfo['name'] else 'UNNAMED'
defFile = minfo['defFile'][-self._formatSourceWidth:] defFile = minfo['defFile'][-self._formatSourceWidth:]
self.annotateFile.write(self._annotate_format % ( self.annotateFile.write(self._annotate_format % (
defFile, minfo['defLine'], name, defFile, minfo['defLine'], name,
......
...@@ -694,7 +694,7 @@ class CompiledMatcher(object): ...@@ -694,7 +694,7 @@ class CompiledMatcher(object):
'line': line, 'line': line,
'lineNr': parser.fIn.lineNr, 'lineNr': parser.fIn.lineNr,
# information about SimpleMatcher # information about SimpleMatcher
'name': self.matcher.name if self.matcher.name else 'UNNAMED', 'name': self.matcher.name,
'defFile': self.matcher.defFile, 'defFile': self.matcher.defFile,
'defLine': self.matcher.defLine, 'defLine': self.matcher.defLine,
'matcher_does_nothing': self.matcher.does_nothing, # matcher without effect 'matcher_does_nothing': self.matcher.does_nothing, # matcher without effect
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment