don't count chars in comment

This commit is contained in:
ConnorSkees 2020-01-17 10:38:59 -05:00
parent 64c6a35add
commit 5b631fb588

View File

@ -162,7 +162,7 @@ impl<'a> Lexer<'a> {
self.pos.next_char(); self.pos.next_char();
match self.buf.peek().expect("expected something after '/'") { match self.buf.peek().expect("expected something after '/'") {
'/' => { '/' => {
self.pos.chars(self.buf.by_ref().take_while(|x| x != &'\n').count() as u32);//.for_each(); self.buf.by_ref().take_while(|x| x != &'\n').for_each(drop);
self.pos.newline(); self.pos.newline();
} }
'*' => { '*' => {