Commit 2fea57b6 authored by bguillaum's avatar bguillaum

fix #7 (Failure:lexing: empty token)

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/semagramme/libcaml-grew/trunk@8852 7838e531-6607-4d57-9587-6c381814729c
parent 59fd6d75
......@@ -65,8 +65,9 @@ let color = hex hex hex hex hex hex | hex hex hex
(* ------------------------------------------------------------------------------- *)
rule comment target = parse
| '\n' { incr Global.current_line; Lexing.new_line lexbuf; target lexbuf }
| _ { comment target lexbuf }
| '\n' { incr Global.current_line; Lexing.new_line lexbuf; target lexbuf }
| eof { EOF }
| _ { comment target lexbuf }
and comment_multi_doc target = shortest
| (_* as comment)"--%" {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment