diff options
author | Maxence Guesdon <maxence.guesdon@inria.fr> | 2002-12-12 09:15:34 +0000 |
---|---|---|
committer | Maxence Guesdon <maxence.guesdon@inria.fr> | 2002-12-12 09:15:34 +0000 |
commit | a13431ccf3fff7d663baf54867b25f5c53cbeb4b (patch) | |
tree | 198e111632ce915ce8f25b05fbf1914e6f91d875 /ocamldoc/odoc_ocamlhtml.mll | |
parent | 4a7da352567cd4b39e24adfc18934e43be3767c7 (diff) |
correction retour en arriere dans le lexeur
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5334 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'ocamldoc/odoc_ocamlhtml.mll')
-rw-r--r-- | ocamldoc/odoc_ocamlhtml.mll | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ocamldoc/odoc_ocamlhtml.mll b/ocamldoc/odoc_ocamlhtml.mll index 72b26960d..12f8af370 100644 --- a/ocamldoc/odoc_ocamlhtml.mll +++ b/ocamldoc/odoc_ocamlhtml.mll @@ -346,6 +346,10 @@ rule token = parse } | "*)" { lexbuf.Lexing.lex_curr_pos <- lexbuf.Lexing.lex_curr_pos - 1; + lexbuf.Lexing.lex_curr_p <- + { lexbuf.Lexing.lex_curr_p with + pos_cnum = lexbuf.Lexing.lex_curr_p.pos_cnum - 1 + } ; print (Lexing.lexeme lexbuf) ; token lexbuf } |