Added a list iterator for lineanalyzer in parseheader.

This commit is contained in:
2019-02-07 21:14:36 +01:00
parent 21aa6f0b12
commit bb3203bd33
3 changed files with 27 additions and 7 deletions
+12 -3
View File
@@ -8,14 +8,23 @@ class ANALYZEOBJECT:
_passes = count(0)
_analyzed = []
def __exit__(self, *exc):
return False
def __init__(self):
self.passes = 0
self.analyzeline = []
self.analyzed = []
self.comment = False
def analyze(self,l):
if l.startswith('/*') or l.startswith('/**'):
self.comment = True
if l.endswith('*/') or l.endswith('**/'):
self.comment = False
return l
if self.comment == True:
if l.startswith('*') or l.startswith('**'):
return l
if l.startswith(' *'):
return l
class ANALYZER(ANALYZEOBJECT):
_ids = count(0)