aboutsummaryrefslogtreecommitdiffhomepage
path: root/translate/ppvernacnew.ml
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2003-09-02 12:26:16 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2003-09-02 12:26:16 +0000
commit337db34a01f003beabc99d5dbedde4604190f2a9 (patch)
treefb87243b78262884504946817dd14486e1a41e2c /translate/ppvernacnew.ml
parente78c38793e4fb98a5d9a1d951f49cd0c90cdb65f (diff)
Bug traduction Search, SearchPattern, etc.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4290 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'translate/ppvernacnew.ml')
-rw-r--r--translate/ppvernacnew.ml18
1 files changed, 9 insertions, 9 deletions
diff --git a/translate/ppvernacnew.ml b/translate/ppvernacnew.ml
index 59c40b099..6e8f571b6 100644
--- a/translate/ppvernacnew.ml
+++ b/translate/ppvernacnew.ml
@@ -147,15 +147,15 @@ let pr_comment pr_c = function
| CommentInt n -> int n
let pr_in_out_modules = function
- | SearchInside l -> str"inside" ++ spc() ++ prlist_with_sep sep pr_module l
- | SearchOutside [] -> str"outside"
- | SearchOutside l -> str"outside" ++ spc() ++ prlist_with_sep sep pr_module l
+ | SearchInside l -> spc() ++ str"inside" ++ spc() ++ prlist_with_sep sep pr_module l
+ | SearchOutside [] -> mt()
+ | SearchOutside l -> spc() ++ str"outside" ++ spc() ++ prlist_with_sep sep pr_module l
-let pr_search a b pr_c = match a with
- | SearchHead qid -> str"Search" ++ spc() ++ pr_reference qid ++ spc() ++ pr_in_out_modules b
- | SearchPattern c -> str"SearchPattern" ++ spc() ++ pr_c c ++ spc() ++ pr_in_out_modules b
- | SearchRewrite c -> str"SearchRewrite" ++ spc() ++ pr_c c ++ spc() ++ pr_in_out_modules b
- | SearchAbout qid -> str"SearchAbout" ++ spc() ++ pr_reference qid ++ spc() ++ pr_in_out_modules b
+let pr_search a b pr_p = match a with
+ | SearchHead qid -> str"Search" ++ spc() ++ pr_reference qid ++ pr_in_out_modules b
+ | SearchPattern c -> str"SearchPattern" ++ spc() ++ pr_p c ++ pr_in_out_modules b
+ | SearchRewrite c -> str"SearchRewrite" ++ spc() ++ pr_p c ++ pr_in_out_modules b
+ | SearchAbout qid -> str"SearchAbout" ++ spc() ++ pr_reference qid ++ pr_in_out_modules b
let pr_locality local = if local then str "Local " else str ""
@@ -1031,7 +1031,7 @@ pr_vbinders bl ++ spc())
| PrintInspect n -> str"Inspect" ++ spc() ++ int n
| PrintScope s -> str"Print Scope" ++ spc() ++ str s
in pr_printable p
- | VernacSearch (sea,sea_r) -> pr_search sea sea_r pr_constr
+ | VernacSearch (sea,sea_r) -> pr_search sea sea_r pr_pattern
| VernacLocate loc ->
let pr_locate =function
| LocateTerm qid -> pr_reference qid