@property
    def depth(self):
        match = re.search(r'^#((\*|-)\2*)', self.line)
        if match:
            return len(match.group(1))
        return 0


### Comment insertion
Sets the currently in-scope instance of this class to its previous value.
dataset/ETHPy150Open hut8labs/diffscuss/diffscuss/support/editor.py/LineProperties.depth--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/base/context_local.py/ContextLocal.__exit__