fixed line counts ignoring newlines after a // comment

This commit is contained in:
mark 2023-05-26 21:47:47 +02:00
parent 8848552302
commit 82f2f028fa

View File

@ -56,7 +56,11 @@ impl File {
Some('/') => match chs.next() { Some('/') => match chs.next() {
Some('/') => loop { Some('/') => loop {
match chs.next() { match chs.next() {
Some('\n') | None => break, Some('\n') => {
data.push('\n');
break;
}
None => break,
_ => (), _ => (),
} }
}, },