mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-06-26 20:52:29 +02:00
Made lexer lex '°' as 'deg'.
This commit is contained in:
parent
2c3f70e3f2
commit
6e40612a46
@ -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