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

rename local hightlitedLine to highlighted in annotator

parent dd6fda7d
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ class Annotator(object): ...@@ -36,7 +36,7 @@ class Annotator(object):
def annotate(self,match,line,matcher,targetStartEnd): def annotate(self,match,line,matcher,targetStartEnd):
if not self.annotateFile: if not self.annotateFile:
return 1 return 1
(matched, full, highlightedLine) = self.matchHighlighter.highlight( (matched, full, highlighted) = self.matchHighlighter.highlight(
match, line) match, line)
matchlabel = '' matchlabel = ''
if matched: if matched:
...@@ -50,7 +50,7 @@ class Annotator(object): ...@@ -50,7 +50,7 @@ class Annotator(object):
else: else:
if self.coverageIgnore.match(line): if self.coverageIgnore.match(line):
matchlabel = 'ign' matchlabel = 'ign'
highlightedLine = ANSI.FG_BLUE + highlightedLine highlighted = ANSI.FG_BLUE + highlighted
else: else:
matchlabel = 'no' matchlabel = 'no'
...@@ -61,5 +61,5 @@ class Annotator(object): ...@@ -61,5 +61,5 @@ class Annotator(object):
defFile=matcher.defFile[-self._formatSourceWidth:] defFile=matcher.defFile[-self._formatSourceWidth:]
self.annotateFile.write(self._annotate_format % ( self.annotateFile.write(self._annotate_format % (
defFile, matcher.defLine, name, defFile, matcher.defLine, name,
matchlabel, highlightedLine, matchlabel, highlighted,
)) ))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment