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:
parent
8fcf71661e
commit
9de4a8aecd
5 changed files with 67 additions and 45 deletions
|
@ -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),
|
||||
|
||||
_ => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue