From 7e5214d629838e811e14c0a7273cfdb3f86339cf Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sun, 26 Jan 2020 12:28:12 -0500 Subject: [PATCH] Handle keywords in `Value` --- src/value.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/value.rs b/src/value.rs index d1e2a80..6bd1f47 100644 --- a/src/value.rs +++ b/src/value.rs @@ -335,6 +335,9 @@ impl Value { Some(Value::Ident(s, QuoteKind::None)) } TokenKind::Keyword(Keyword::Important) => Some(Value::Important), + TokenKind::Keyword(Keyword::True) => Some(Value::True), + TokenKind::Keyword(Keyword::False) => Some(Value::False), + TokenKind::Keyword(Keyword::Null) => Some(Value::Null), _ => None, } }