From 94e31fd0c39e5f5dbccd4a3a290e7fe5f06fc4a0 Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 23 Oct 2021 00:22:52 +0200 Subject: Add true and false keywords to unit expression --- src/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse/parser.rs b/src/parse/parser.rs index 219065b..9b72597 100644 --- a/src/parse/parser.rs +++ b/src/parse/parser.rs @@ -171,7 +171,7 @@ impl> Parser { fn unit_expression(&mut self) -> Result { if let Some(token) = self.tokens.peek() { match token.variant { - Int(_) | Float(_) | Str(_) => { + Int(_) | Float(_) | Str(_) | KeywordTrue | KeywordFalse => { let literal = self.tokens.next().unwrap(); Ok(Expression::Literal(Literal::from_token(literal))) } -- cgit 1.4.1