replace def = value with def: value, and let a = b with a = b

in the name of terseness

i'm also slipping in a new brush preset that i made

closes #125
This commit is contained in:
りき萌 2025-06-30 23:54:50 +02:00
parent 8fcf71661e
commit 9de4a8aecd
5 changed files with 67 additions and 45 deletions

View file

@ -73,7 +73,6 @@ fn ident(l: &mut Lexer<'_>) -> TokenKind {
"or" => TokenKind::Or,
"if" => TokenKind::If,
"else" => TokenKind::Else,
"let" => TokenKind::Let,
_ => TokenKind::Ident,
}
}
@ -210,6 +209,7 @@ fn token(l: &mut Lexer<'_>) -> (TokenKind, Span) {
'[' => one(l, TokenKind::LBrack),
']' => one(l, TokenKind::RBrack),
',' => one(l, TokenKind::Comma),
':' => one(l, TokenKind::Colon),
'\\' => one(l, TokenKind::Backslash),
_ => {