Handle keywords in Value

This commit is contained in:
ConnorSkees 2020-01-26 12:28:12 -05:00
parent 63dd66f0f7
commit 7e5214d629

View File

@ -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,
}
}