eric7/Utilities/ModuleParser.py

branch
eric7
changeset 8495
e8278859d9fd
parent 8312
800c432b34c8
child 8761
f05818ae6431
equal deleted inserted replaced
8490:22230c2591c3 8495:e8278859d9fd
541 @rtype int 541 @rtype int
542 """ 542 """
543 # start with zero based line after start line 543 # start with zero based line after start line
544 while lineno < len(lines): 544 while lineno < len(lines):
545 line = lines[lineno] 545 line = lines[lineno]
546 if line.strip(): 546 if line.strip() and not line.lstrip().startswith("#"):
547 # line contains some text 547 # line contains some text and does not start with
548 # a comment sign
548 lineIndent = _indent(line.replace(line.lstrip(), "")) 549 lineIndent = _indent(line.replace(line.lstrip(), ""))
549 if lineIndent <= indent: 550 if lineIndent <= indent:
550 return lineno 551 return lineno
551 lineno += 1 552 lineno += 1
552 553

eric ide

mercurial