mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-06-23 19:21:26 +02: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,
|
_ => TokenKind::Identifier,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if &value == "°" {
|
||||||
|
value = String::from("deg");
|
||||||
|
}
|
||||||
|
|
||||||
build(kind, &value, (start, end))
|
build(kind, &value, (start, end))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user