mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-01-18 19:28:12 +01:00
Made lexer lex '°' as 'deg'.
This commit is contained in:
parent
fe6df0ff32
commit
1d93e60d91
@ -175,6 +175,10 @@ impl<'a> Lexer<'a> {
|
||||
_ => TokenKind::Identifier,
|
||||
};
|
||||
|
||||
if &value == "°" {
|
||||
value = String::from("deg");
|
||||
}
|
||||
|
||||
build(kind, &value, (start, end))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user