mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-10 14:13:52 +01:00
fixed line counts ignoring newlines after a // comment
This commit is contained in:
parent
8848552302
commit
82f2f028fa
@ -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,
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user