mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-16 00:28:25 +01:00
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:
parent
879a7c5446
commit
db77273659
1 changed files with 2 additions and 2 deletions
4
blame.py
4
blame.py
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue