Lex quotes -- need to write a test for this but captain says its time to put devices away...
This commit is contained in:
parent
89e639fbac
commit
b1ef5fdf3e
3 changed files with 9 additions and 0 deletions
|
@ -133,6 +133,9 @@ impl Lexer {
|
|||
self.state = State::Hash;
|
||||
self.advance();
|
||||
}
|
||||
else if c.is_quote() {
|
||||
return self.token_result(Token::Quote);
|
||||
}
|
||||
else if c.is_string_quote() {
|
||||
self.state = State::String;
|
||||
self.advance();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue