remove unwrap from variable value parsing
This commit is contained in:
parent
d90ef7fa41
commit
0352c82c88
@ -123,7 +123,9 @@ impl<'a> Parser<'a> {
|
||||
}
|
||||
Some(..) | None => {}
|
||||
}
|
||||
val_toks.push(self.toks.next().unwrap());
|
||||
if let Some(tok) = self.toks.next() {
|
||||
val_toks.push(tok);
|
||||
}
|
||||
}
|
||||
'{' => break,
|
||||
'}' => {
|
||||
|
@ -143,3 +143,7 @@ error!(
|
||||
invalid_escape,
|
||||
"$\\110000: red;", "Error: Invalid escape sequence."
|
||||
);
|
||||
error!(
|
||||
nothing_after_hash_in_variable_decl,
|
||||
"$color: #", "Error: Expected identifier."
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user