From f57b6a25082f024bb4c743608c25b7037bf07b8d Mon Sep 17 00:00:00 2001 From: barras Date: Mon, 20 Oct 2003 10:12:39 +0000 Subject: bug traduction de auto.(simpl). en auto.simpl. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4676 85f007b7-540e-0410-9357-904b9bb8a0f7 --- toplevel/vernac.ml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/toplevel/vernac.ml b/toplevel/vernac.ml index c2342d7937..909757c0cf 100644 --- a/toplevel/vernac.ml +++ b/toplevel/vernac.ml @@ -101,13 +101,19 @@ let just_parsing = ref false let chan_translate = ref stdout let last_char = ref '\000' +(* postprocessor to avoid lexical icompatibilities between V7 and V8. + Ex: auto.(* comment *) or simpl.auto + *) let set_formatter_translator() = let ch = !chan_translate in let out s b e = let n = e-b in if n > 0 then begin (match !last_char with - '.' -> if s.[b] = '(' then output ch " " 0 1 + '.' -> + (match s.[b] with + '('|'a'..'z'|'A'..'Z' -> output ch " " 0 1 + | _ -> ()) | _ -> ()); last_char := s.[e-1] end; -- cgit v1.2.3