File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 3131
3232 if self . ptr == self . length {
3333 break ;
34- } else if self . is_current_byte ( b'\n' ) {
34+ } else if self . is_eol ( ) {
3535 content. push ( self . get_comment_line ( ) ) ;
3636 } else {
3737 if let Err ( e) = self . expect_byte ( b' ' ) {
5252
5353 pub ( super ) fn skip_comment ( & mut self ) {
5454 loop {
55- while self . ptr < self . length && !self . is_current_byte ( b'\n' ) {
55+ while self . ptr < self . length && !self . is_eol ( ) {
5656 self . ptr += 1 ;
5757 }
5858 self . ptr += 1 ;
Original file line number Diff line number Diff line change 11
2+ # Term Comment
3+ # with a blank last line.
4+ #
25key01 = Value 01
36key02 =
47
Original file line number Diff line number Diff line change 1717 ]
1818 },
1919 "attributes" : [],
20- "comment" : null
20+ "comment" : {
21+ "type" : " Comment" ,
22+ "content" : " Term Comment\n with a blank last line.\n "
23+ }
2124 },
2225 {
2326 "type" : " Message" ,
You can’t perform that action at this time.
0 commit comments