@@ -1697,6 +1697,9 @@ pprintPTerm ppo bnd docArgs infixes = prettySe (ppopt_depth ppo) startPrec bnd
16971697 where
16981698 startPrec = 0
16991699 funcAppPrec = 10
1700+ lbrace = annotate (AnnSyntax "{") (text "{")
1701+ rbrace = annotate (AnnSyntax "}") (text "}")
1702+ percent = annotate (AnnSyntax "%") (text "%")
17001703
17011704 prettySe :: Maybe Int -> Int -> [(Name, Bool)] -> PTerm -> Doc OutputAnnotation
17021705 prettySe d p bnd (PQuote r) =
@@ -1709,7 +1712,8 @@ pprintPTerm ppo bnd docArgs infixes = prettySe (ppopt_depth ppo) startPrec bnd
17091712 prettySe d p bnd (PLam fc n nfc ty sc) =
17101713 let (ns, sc') = getLamNames [n] sc in
17111714 depth d . bracket p startPrec . group . align . hang 2 $
1712− text "\\" <> prettyBindingsOf ns False <+> text "=>" <$>
1715+ (annotate (AnnSyntax "\\") (text "\\"))
1716+ <> prettyBindingsOf ns False <+> text "=>" <$>
17131717 prettySe (decD d) startPrec ((n, False):bnd) sc'
17141718 where
17151719 getLamNames acc (PLam fc n nfc ty sc) = getLamNames (n : acc) sc
@@ -1749,7 +1753,7 @@ pprintPTerm ppo bnd docArgs infixes = prettySe (ppopt_depth ppo) startPrec bnd
17491753
17501754 st =
17511755 case s of
1752− Static -> text "%static" <> space
1756+ Static -> percent <> text "static" <> space
17531757 _ -> empty
17541758 prettySe d p bnd (PPi (Imp l s _ fa _ rig) n _ ty sc)
17551759 | ppopt_impl ppo =
@@ -1769,7 +1773,7 @@ pprintPTerm ppo bnd docArgs infixes = prettySe (ppopt_depth ppo) startPrec bnd
17691773
17701774 st =
17711775 case s of
1772− Static -> text "%static" <> space
1776+ Static -> percent <> text "static" <> space
17731777 _ -> empty
17741778 prettySe d p bnd (PPi (Constraint _ _ rig) n _ ty sc) =
17751779 depth d . bracket p startPrec $
@@ -1876,7 +1880,7 @@ pprintPTerm ppo bnd docArgs infixes = prettySe (ppopt_depth ppo) startPrec bnd
18761880 , kwd "else" <+> prettySe (decD d) startPrec bnd f
18771881 ]
18781882 prettySe d p bnd (PHidden tm) = text "." <> prettySe (decD d) funcAppPrec bnd tm
1879− prettySe d p bnd (PResolveTC _) = kwd "%implementation"
1883+ prettySe d p bnd (PResolveTC _) = percent <> kwd "implementation"
18801884 prettySe d p bnd (PTrue _ IsType) = annName unitTy $ text "()"
18811885 prettySe d p bnd (PTrue _ IsTerm) = annName unitCon $ text "()"
18821886 prettySe d p bnd (PTrue _ TypeOrTerm) = text "()"
@@ -1981,7 +1985,7 @@ pprintPTerm ppo bnd docArgs infixes = prettySe (ppopt_depth ppo) startPrec bnd
19811985 end = if res then "}" else "}}"
19821986 prettySe d p bnd (PRunElab _ tm _) =
19831987 bracket p funcAppPrec . group . align . hang 2 $
1984− text "%runElab" <$>
1988+ (percent <> text "runElab") <$>
19851989 prettySe (decD d) funcAppPrec bnd tm
19861990 prettySe d p bnd (PConstSugar fc tm) = prettySe d p bnd tm -- should never occur, but harmless
19871991 prettySe d p bnd _ = text "missing pretty-printer for term"