Skip to content

Commit

Permalink
Floating docstrings are also extra text
Browse files Browse the repository at this point in the history
git-svn-id: http://caml.inria.fr/svn/ocaml/version/4.02@16161 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information
lpw25 committed Jun 5, 2015
1 parent 779f8d0 commit 0e515bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions parsing/lexer.mll
Original file line number Diff line number Diff line change
Expand Up @@ -708,13 +708,17 @@ and skip_sharp_bang = parse
set_pre_extra_docstrings pre_pos (List.rev a)
| Before(a, f, b), (NoLine | NewLine) ->
set_post_docstrings post_pos (List.rev a);
set_post_extra_docstrings post_pos (List.rev b);
set_post_extra_docstrings post_pos
(List.rev_append f (List.rev b));
set_floating_docstrings pre_pos (List.rev f);
set_pre_extra_docstrings pre_pos (List.rev a);
set_pre_docstrings pre_pos b
| Before(a, f, b), BlankLine ->
set_post_docstrings post_pos (List.rev a);
set_floating_docstrings pre_pos (List.rev_append f (List.rev b));
set_post_extra_docstrings post_pos
(List.rev_append f (List.rev b));
set_floating_docstrings pre_pos
(List.rev_append f (List.rev b));
set_pre_extra_docstrings pre_pos (List.rev a)
in
let rec loop lines docs lexbuf =
Expand Down

0 comments on commit 0e515bc

Please sign in to comment.