@@ -871,7 +871,7 @@ data PTerm = PQuote Raw -- ^ Inclusion of a core term into the high-level langua
871 | PNoImplicits PTerm -- ^ never run implicit converions on the term
871 | PNoImplicits PTerm -- ^ never run implicit converions on the term
872 | PQuasiquote PTerm (Maybe PTerm) -- ^ `(Term [: Term])
872 | PQuasiquote PTerm (Maybe PTerm) -- ^ `(Term [: Term])
873 | PUnquote PTerm -- ^ ~Term
873 | PUnquote PTerm -- ^ ~Term
874− | PQuoteName Name -- ^ `{n}
874+ | PQuoteName Name FC -- ^ `{n} where the FC is the precise highlighting for the name in particular
875 | PRunElab FC PTerm [String] -- ^ %runElab tm - New-style proof script. Args are location, script, enclosing namespace.
875 | PRunElab FC PTerm [String] -- ^ %runElab tm - New-style proof script. Args are location, script, enclosing namespace.
876 deriving (Eq, Data, Typeable)
876 deriving (Eq, Data, Typeable)
@@ -931,7 +931,7 @@ mapPTermFC f g (PNoImplicits t) = PNoImplicits (mapPTermFC f g t)
931mapPTermFC f g (PQuasiquote t1 t2) = PQuasiquote (mapPTermFC f g t1) (fmap (mapPTermFC f g) t2)
931mapPTermFC f g (PQuasiquote t1 t2) = PQuasiquote (mapPTermFC f g t1) (fmap (mapPTermFC f g) t2)
932mapPTermFC f g (PUnquote t) = PUnquote (mapPTermFC f g t)
932mapPTermFC f g (PUnquote t) = PUnquote (mapPTermFC f g t)
933mapPTermFC f g (PRunElab fc tm ns) = PRunElab (f fc) (mapPTermFC f g tm) ns
933mapPTermFC 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)
937dg instance Binary PTerm
937dg instance Binary PTerm
@@ -1156,7 +1156,7 @@ highestFC (PUnifyLog tm) = highestFC tm
1156highestFC (PNoImplicits tm) = highestFC tm
1156highestFC (PNoImplicits tm) = highestFC tm
1157highestFC (PQuasiquote _ _) = Nothing
1157highestFC (PQuasiquote _ _) = Nothing
1158highestFC (PUnquote tm) = highestFC tm
1158highestFC (PUnquote tm) = highestFC tm
1159−highestFC (PQuoteName _) = Nothing
1159+highestFC (PQuoteName _ fc) = Just fc
1160highestFC (PRunElab fc _ _) = Just fc
1160highestFC (PRunElab fc _ _) = Just fc
1161highestFC (PAppImpl t _) = highestFC t
1161highestFC (PAppImpl t _) = highestFC t
@@ -1744,7 +1744,7 @@ pprintPTerm ppo bnd docArgs infixes = prettySe (ppopt_depth ppo) startPrec bnd
1744 prettySe d p bnd (PQuasiquote t Nothing) = text "`(" <> prettySe (decD d) p [] t <> text ")"
1744 prettySe d p bnd (PQuasiquote t Nothing) = text "`(" <> prettySe (decD d) p [] t <> text ")"
1745 prettySe d p bnd (PQuasiquote t (Just g)) = text "`(" <> prettySe (decD d) p [] t <+> colon <+> prettySe (decD d) p [] g <> text ")"
1745 prettySe d p bnd (PQuasiquote t (Just g)) = text "`(" <> prettySe (decD d) p [] t <+> colon <+> prettySe (decD d) p [] g <> text ")"
1746 prettySe d p bnd (PUnquote t) = text "~" <> prettySe (decD d) p bnd t
1746 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 "}"
1748 prettySe d p bnd (PRunElab _ tm _) =
1748 prettySe d p bnd (PRunElab _ tm _) =
1749 bracket p funcAppPrec . group . align . hang 2 $
1749 bracket p funcAppPrec . group . align . hang 2 $
1750 text "%runElab" <$>
1750 text "%runElab" <$>