Made lexer lex '°' as 'deg'.

This commit is contained in:
PaddiM8 2020-06-18 18:06:17 +02:00
parent fe6df0ff32
commit 1d93e60d91

View File

@ -175,6 +175,10 @@ impl<'a> Lexer<'a> {
_ => TokenKind::Identifier,
};
if &value == "°" {
value = String::from("deg");
}
build(kind, &value, (start, end))
}