3
들여 쓰기 기반의 상황을 보여주는 grep 도구가 있습니까? 매치마다 가장 낮은 레벨의 가장 최근 라인을보고 싶지만 그 사이의 동일한 들여 쓰기 레벨에서 모든 라인을 건너 뜁니다. 예 :들여 쓰기 기반 grep grep
$ contextgrep rstrip pep8.py
class Checker(object):
def check_logical(self):
if self.verbose >= 2:
print(self.logical_line[:80].rstrip())
코드 블록에 표시된대로 쓰기^^ – zinking