@@ -871,7 +871,7 @@ data PTerm = PQuote Raw -- ^ Inclusion of a core term into the high-level langua
871871 | PNoImplicits PTerm -- ^ never run implicit converions on the term
872872 | PQuasiquote PTerm (Maybe PTerm) -- ^ `(Term [: Term])
873873 | PUnquote PTerm -- ^ ~Term
874− | PQuoteName Name -- ^ `{n}
874+ | PQuoteName Name FC -- ^ `{n} where the FC is the precise highlighting for the name in particular
875875 | PRunElab FC PTerm [String] -- ^ %runElab tm - New-style proof script. Args are location, script, enclosing namespace.
876876 deriving (Eq, Data, Typeable)
877877
@@ -931,7 +931,7 @@ mapPTermFC f g (PNoImplicits t) = PNoImplicits (mapPTermFC f g t)
931931mapPTermFC f g (PQuasiquote t1 t2) = PQuasiquote (mapPTermFC f g t1) (fmap (mapPTermFC f g) t2)
932932mapPTermFC f g (PUnquote t) = PUnquote (mapPTermFC f g t)
933933mapPTermFC f g (PRunElab fc tm ns) = PRunElab (f fc) (mapPTermFC f g tm) ns
934−mapPTermFC f g (PQuoteName n) = PQuoteName n
934+mapPTermFC f g (PQuoteName n fc) = PQuoteName n (g fc)
935935
936936{-!
937937dg instance Binary PTerm
@@ -1156,7 +1156,7 @@ highestFC (PUnifyLog tm) = highestFC tm
11561156highestFC (PNoImplicits tm) = highestFC tm
11571157highestFC (PQuasiquote _ _) = Nothing
11581158highestFC (PUnquote tm) = highestFC tm
1159−highestFC (PQuoteName _) = Nothing
1159+highestFC (PQuoteName _ fc) = Just fc
11601160highestFC (PRunElab fc _ _) = Just fc
11611161highestFC (PAppImpl t _) = highestFC t
11621162
@@ -1744,7 +1744,7 @@ pprintPTerm ppo bnd docArgs infixes = prettySe (ppopt_depth ppo) startPrec bnd
17441744 prettySe d p bnd (PQuasiquote t Nothing) = text "`(" <> prettySe (decD d) p [] t <> text ")"
17451745 prettySe d p bnd (PQuasiquote t (Just g)) = text "`(" <> prettySe (decD d) p [] t <+> colon <+> prettySe (decD d) p [] g <> text ")"
17461746 prettySe d p bnd (PUnquote t) = text "~" <> prettySe (decD d) p bnd t
1747− prettySe d p bnd (PQuoteName n) = text "`{" <> prettyName True (ppopt_impl ppo) bnd n <> text "}"
1747+ prettySe d p bnd (PQuoteName n _) = text "`{" <> prettyName True (ppopt_impl ppo) bnd n <> text "}"
17481748 prettySe d p bnd (PRunElab _ tm _) =
17491749 bracket p funcAppPrec . group . align . hang 2 $
17501750 text "%runElab" <$>