diff options
| author | Philipp A | 2020-10-31 15:39:08 +0100 |
|---|---|---|
| committer | GitHub | 2020-10-31 15:39:08 +0100 |
| commit | 8252a895ed0d23f23065be5000c45429031a2c6f (patch) | |
| tree | ea5e75cc430223f90e35bb4eaedb44f45e9b02a7 /parser/src/tests.rs | |
| parent | 9d506af852e253cf49095c330183075272de1f79 (diff) | |
| download | rust-rst-8252a895ed0d23f23065be5000c45429031a2c6f.tar.bz2 | |
Fix comment conversion (#27)
Diffstat (limited to 'parser/src/tests.rs')
| -rw-r--r-- | parser/src/tests.rs | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/parser/src/tests.rs b/parser/src/tests.rs index b4b9e19..5a9ee9a 100644 --- a/parser/src/tests.rs +++ b/parser/src/tests.rs @@ -248,46 +248,42 @@ fn comments() { followed by a non-blank line and another one. +.. +.. Comments can also be + run-in like this ", rule: Rule::document, tokens: [ block_comment(0, 22, [ - comment_title(3, 20), + comment_line(3, 21), ]), block_comment(22, 43, [ - comment_block(25, 42, [ - comment_line(25, 42), - ]) + comment_line(28, 42), ]), block_comment(43, 63, [ - comment_block(46, 63, [ - comment_line(46, 63), - ]) + comment_line(49, 63), ]), block_comment(63, 81, [ - comment_block(66, 81, [ - comment_line(66, 81), - ]) + comment_line(69, 81), ]), block_comment(81, 99, [ - comment_block(84, 99, [ - comment_line(84, 99), - ]) + comment_line(87, 99), ]), block_comment(99, 121, [ - comment_block(102, 121, [ - comment_line(102, 121), - ]) + comment_line(105, 121), ]), block_comment(121, 216, [ - comment_title(124, 138), - comment_block(139, 216, [ - comment_line_blank(139, 140), - comment_line(141, 163), - comment_line(164, 195), - comment_line_blank(195, 196), - comment_line(197, 216), - ]) + comment_line(124, 139), + comment_line_blank(139, 140), + comment_line(143, 163), + comment_line(166, 195), + comment_line_blank(195, 196), + comment_line(199, 216), + ]), + block_comment(216, 219), + block_comment(219, 263, [ + comment_line(222, 243), + comment_line(246, 263), ]), ] }; |
