aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
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<T: Iterator<Item = Token>> Parser<T> {
fn unit_expression(&mut self) -> Result<Expression> {
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)))
}