Fix like operator not being implemented (#4460)

This commit is contained in:
Mees Delzenne 2024-08-05 19:07:41 +02:00 committed by GitHub
parent 36d83ebccf
commit 0505a8ef6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -138,6 +138,7 @@ impl<'a> Lexer<'a> {
b'(' => t!("("),
b';' => t!(";"),
b',' => t!(","),
b'~' => t!("~"),
b'@' => t!("@"),
byte::CR | byte::FF | byte::LF | byte::SP | byte::VT | byte::TAB => {
self.eat_whitespace();

View file

@ -14,6 +14,11 @@ fn parse_coordinate() {
test_parse!(parse_value, "(1.88, -18.0)").unwrap();
}
#[test]
fn parse_like_operator() {
test_parse!(parse_value, "a ~ b").unwrap();
}
#[test]
fn parse_large_depth_object() {
let mut text = String::new();