File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 31
31
32
32
if self . ptr == self . length {
33
33
break ;
34
- } else if self . is_current_byte ( b'\n' ) {
34
+ } else if self . is_eol ( ) {
35
35
content. push ( self . get_comment_line ( ) ) ;
36
36
} else {
37
37
if let Err ( e) = self . expect_byte ( b' ' ) {
52
52
53
53
pub ( super ) fn skip_comment ( & mut self ) {
54
54
loop {
55
- while self . ptr < self . length && !self . is_current_byte ( b'\n' ) {
55
+ while self . ptr < self . length && !self . is_eol ( ) {
56
56
self . ptr += 1 ;
57
57
}
58
58
self . ptr += 1 ;
Original file line number Diff line number Diff line change 1
1
2
+ # Term Comment
3
+ # with a blank last line.
4
+ #
2
5
key01 = Value 01
3
6
key02 =
4
7
Original file line number Diff line number Diff line change 17
17
]
18
18
},
19
19
"attributes" : [],
20
- "comment" : null
20
+ "comment" : {
21
+ "type" : " Comment" ,
22
+ "content" : " Term Comment\n with a blank last line.\n "
23
+ }
21
24
},
22
25
{
23
26
"type" : " Message" ,
You can’t perform that action at this time.
0 commit comments