rename "Tag" highlight to "Constant"
This commit is contained in:
parent
2f8a2d2cd2
commit
3b9a339e5e
5 changed files with 29 additions and 29 deletions
|
@ -363,9 +363,9 @@ prettySexp (L (x :: xs)) = do
|
|||
parens $ ifMultiline
|
||||
(hsep $ d :: ds)
|
||||
(hsep [d, vsep ds] <|> vsep (d :: map (indent 2) ds))
|
||||
prettySexp (Q (V x)) = hl Tag $ "'" <+> prettyId' x
|
||||
prettySexp (Q x) = pure $ hcat [!(hl Tag "'"), !(prettySexp x)]
|
||||
prettySexp (N n) = hl Tag $ pshow n
|
||||
prettySexp (Q (V x)) = hl Constant $ "'" <+> prettyId' x
|
||||
prettySexp (Q x) = pure $ hcat [!(hl Constant "'"), !(prettySexp x)]
|
||||
prettySexp (N n) = hl Constant $ pshow n
|
||||
prettySexp (S s) = prettyStrLit $ escape s
|
||||
prettySexp (Lambda xs e) = prettyLambda "lambda" xs e
|
||||
prettySexp (LambdaC xs e) = prettyLambda "lambda%" xs e
|
||||
|
|
|
@ -226,7 +226,7 @@ prettyTerm xs (CaseEnum tag cases _) =
|
|||
prettyCase xs prettyTag tag $
|
||||
map (\(t, rhs) => MkPrettyCaseArm t [] rhs) $ toList cases
|
||||
prettyTerm xs (Absurd _) = hl Syntax "absurd"
|
||||
prettyTerm xs (Nat n _) = hl Tag $ pshow n
|
||||
prettyTerm xs (Nat n _) = hl Constant $ pshow n
|
||||
prettyTerm xs (Succ nat _) = prettyApp xs !succD [< nat]
|
||||
prettyTerm xs (CaseNat nat zer suc _) =
|
||||
prettyCase xs pure nat [MkPrettyCaseArm !zeroD [] zer, !(sucCaseArm suc)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue