eric6/Utilities/ModuleParser.py

branch
maintenance
changeset 8576
fe1957c69854
parent 8400
b3eefd7e58d1
parent 8493
da73e8e32ba7
equal deleted inserted replaced
8451:d0123f020daa 8576:fe1957c69854
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