don't count chars in comment
This commit is contained in:
parent
64c6a35add
commit
5b631fb588
@ -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();
|
||||||
}
|
}
|
||||||
'*' => {
|
'*' => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user