Starting to look at pretty-printing with the idea of auto-indentation
I wonder if it will work?
This commit is contained in:
parent
d7dfd556ec
commit
00b4cd4702
2 changed files with 57 additions and 14 deletions
|
|
@ -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: ...
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue