Handle keywords in Value
This commit is contained in:
parent
63dd66f0f7
commit
7e5214d629
@ -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,
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user