mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 13:44:15 +00:00
Fix hang in comment lexer
This commit is contained in:
parent
71f0950111
commit
13eabf96c0
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ impl<'a> Iterator for TokenIterator<'a> {
|
|||
'/' => match self.0.peek() {
|
||||
Some(&'/') => loop {
|
||||
match self.0.next() {
|
||||
Some('\n') => return Some(Token::Comment(1)),
|
||||
None | Some('\n') => return Some(Token::Comment(1)),
|
||||
_ => ()
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue