diff options
| author | barras | 2003-10-20 10:12:39 +0000 |
|---|---|---|
| committer | barras | 2003-10-20 10:12:39 +0000 |
| commit | f57b6a25082f024bb4c743608c25b7037bf07b8d (patch) | |
| tree | 7c33117747b8779e864ba06c472d97760e5a9170 | |
| parent | bba1bdbe36d454ffb387e182998ccf174d177628 (diff) | |
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
| -rw-r--r-- | toplevel/vernac.ml | 8 |
1 files changed, 7 insertions, 1 deletions
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; |
