summaryrefslogtreecommitdiff
path: root/lex
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2003-08-14 18:11:36 +0000
committerDamien Doligez <damien.doligez-inria.fr>2003-08-14 18:11:36 +0000
commite6503e0a08546d23a9e76f42d71dac75211efc8f (patch)
tree58644b5dbd79f1a4ccd762f2f3fee91ae54ac9a0 /lex
parent763fbac510b0006db6bd3ba5ebcd036e91350da7 (diff)
downloadocaml-e6503e0a08546d23a9e76f42d71dac75211efc8f.tar.gz
pour que les actions vides marchent comme avant
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5779 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'lex')
-rw-r--r--lex/common.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lex/common.ml b/lex/common.ml
index 90b60894f2..53b58650ed 100644
--- a/lex/common.ml
+++ b/lex/common.ml
@@ -69,7 +69,7 @@ let copy_chars =
| _ -> copy_chars_unix
let copy_chunk sourcefile ic oc trl loc add_parens =
- if loc.start_pos < loc.end_pos then begin
+ if loc.start_pos < loc.end_pos || add_parens then begin
fprintf oc "# %d \"%s\"\n" loc.start_line sourcefile;
if add_parens then begin
for i = 1 to loc.start_col - 1 do output_char oc ' ' done;