Starting to look at pretty-printing with the idea of auto-indentation

I wonder if it will work?
This commit is contained in:
John Doty 2024-09-06 16:23:14 -07:00
parent d7dfd556ec
commit 00b4cd4702
2 changed files with 57 additions and 14 deletions

View file

@ -1785,6 +1785,18 @@ def mark(rule: Rule, **kwargs) -> Rule:
return MetadataRule(rule, kwargs)
def group(*rules: Rule) -> Rule:
return seq(*rules)
def indent(*rules: Rule) -> Rule:
return seq(*rules)
def newline() -> Rule:
return Nothing
@typing.overload
def rule(f: typing.Callable, /) -> Rule: ...