fix: indent structure fields
This commit is contained in:
parent
316fa81042
commit
f5a2562575
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ def structExplicitBinder := leading_parser atomic (declModifiers true >> "(") >>
|
|||
def structImplicitBinder := leading_parser atomic (declModifiers true >> "{") >> many1 ident >> optional inferMod >> declSig >> "}"
|
||||
def structInstBinder := leading_parser atomic (declModifiers true >> "[") >> many1 ident >> optional inferMod >> declSig >> "]"
|
||||
def structSimpleBinder := leading_parser atomic (declModifiers true >> ident) >> optional inferMod >> optDeclSig >> optional (Term.binderTactic <|> Term.binderDefault)
|
||||
def structFields := leading_parser manyIndent (ppLine >> checkColGe >>(structExplicitBinder <|> structImplicitBinder <|> structInstBinder <|> structSimpleBinder))
|
||||
def structFields := leading_parser manyIndent (ppLine >> checkColGe >> ppGroup (structExplicitBinder <|> structImplicitBinder <|> structInstBinder <|> structSimpleBinder))
|
||||
def structCtor := leading_parser atomic (declModifiers true >> ident >> optional inferMod >> " :: ")
|
||||
def structureTk := leading_parser "structure "
|
||||
def classTk := leading_parser "class "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue