mirror of
https://github.com/ParkerTenBroeck/automata.git
synced 2026-06-06 21:24:06 -04:00
cleaning up SCSS and JS
This commit is contained in:
parent
7629bdab6d
commit
806545aba6
10 changed files with 242 additions and 194 deletions
|
|
@ -151,8 +151,15 @@ impl<'a> std::iter::Iterator for Lexer<'a> {
|
|||
|
||||
'/' => match self.consume() {
|
||||
Some('/') => loop {
|
||||
if let Some('\n') | None = self.consume() {
|
||||
break Ok(Token::Comment(&self.input[start + 2..self.position]));
|
||||
match self.consume(){
|
||||
Some('\n') => {
|
||||
self.backtrack();
|
||||
break Ok(Token::Comment(&self.input[start + 2..=self.position]));
|
||||
}
|
||||
None => {
|
||||
break Ok(Token::Comment(&self.input[start + 2..=self.position]));
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
},
|
||||
Some('*') => loop {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue