-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parser: test comments nested in code blocks
See #375.
- Loading branch information
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
((output (((f.ml (1 0) (2 14)) (code_block "(* foo *)\ | ||
\nlet bar = ()")))) | ||
(warnings ())) |
19 changes: 19 additions & 0 deletions
19
test/parser/expect/code-block/docstring-with-code-block.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
((output | ||
(((f.ml (1 0) (1 13)) (code_block "(** {[foo")) | ||
((f.ml (1 14) (2 13)) | ||
(paragraph | ||
(((f.ml (1 14) (1 16)) (word "*)")) ((f.ml (1 16) (2 0)) space) | ||
((f.ml (2 0) (2 3)) (word let)) ((f.ml (2 3) (2 4)) space) | ||
((f.ml (2 4) (2 7)) (word bar)) ((f.ml (2 7) (2 8)) space) | ||
((f.ml (2 8) (2 9)) (word =)) ((f.ml (2 9) (2 10)) space) | ||
((f.ml (2 10) (2 12)) (word "()")) ((f.ml (2 12) (2 13)) (word ]))))) | ||
((f.ml (2 13) (2 14)) (paragraph (((f.ml (2 13) (2 14)) (word }))))))) | ||
(warnings | ||
( "File \"f.ml\", line 1, characters 14-16:\ | ||
\nParagraph should begin on its own line." | ||
"File \"f.ml\", line 2, characters 12-13:\ | ||
\nUnpaired ']' (end of code).\ | ||
\nSuggestion: try '\\]'." | ||
"File \"f.ml\", line 2, characters 13-14:\ | ||
\nUnpaired '}' (end of markup).\ | ||
\nSuggestion: try '\\}'."))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
((output (((f.ml (1 0) (2 14)) (code_block "(** foo *)\ | ||
\nlet bar = ()")))) | ||
(warnings ())) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters