Fixed a potential error with comment detection.

This particular faulty detection could only occur when multi-line comments
were used as single-line comments.
This commit is contained in:
Adam Waldenberg 2013-06-02 19:14:25 +02:00
parent 879a7c5446
commit db77273659
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ class BlameThread(threading.Thread):
is_inside_comment = False
else:
self.blames[(author, self.filename)].comments += 1
elif comment.has_comment_begining(self.extension, content):
is_inside_comment = True
elif comment.has_comment_begining(self.extension, content) and not comment.has_comment_end(self.extension, content):
is_inside_comment = True;
self.blames[(author, self.filename)].rows += 1
__blame_lock__.release() # ...to here.