aboutsummaryrefslogtreecommitdiff
path: root/printing
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2015-03-27 18:17:03 +0100
committerPierre-Marie Pédrot2015-03-27 19:05:31 +0100
commite8b4756c655eacd8a2b9b23630ba02dbbbc4e96e (patch)
treeb3762d3d6b6756fc3d749931cd2103bea61b3779 /printing
parenta5a333ddbf5c27320e767ca0611caf8a821449aa (diff)
Putting the From parameter of the Require command into the AST.
Diffstat (limited to 'printing')
-rw-r--r--printing/ppvernac.ml8
1 files changed, 6 insertions, 2 deletions
diff --git a/printing/ppvernac.ml b/printing/ppvernac.ml
index e0b94669c2..89ffae4b3e 100644
--- a/printing/ppvernac.ml
+++ b/printing/ppvernac.ml
@@ -863,10 +863,14 @@ module Make
| VernacNameSectionHypSet (id,set) ->
return (hov 2 (keyword "Package" ++ spc() ++ pr_lident id ++ spc()++
str ":="++spc()++pr_using set))
- | VernacRequire (exp, l) ->
+ | VernacRequire (from, exp, l) ->
+ let from = match from with
+ | None -> mt ()
+ | Some r -> keyword "From" ++ spc () ++ pr_module r ++ spc ()
+ in
return (
hov 2
- (keyword "Require" ++ spc() ++ pr_require_token exp ++
+ (from ++ keyword "Require" ++ spc() ++ pr_require_token exp ++
prlist_with_sep sep pr_module l)
)
| VernacImport (f,l) ->