Fix like operator not being implemented (#4460)
This commit is contained in:
parent
36d83ebccf
commit
0505a8ef6d
2 changed files with 6 additions and 0 deletions
|
@ -138,6 +138,7 @@ impl<'a> Lexer<'a> {
|
||||||
b'(' => t!("("),
|
b'(' => t!("("),
|
||||||
b';' => t!(";"),
|
b';' => t!(";"),
|
||||||
b',' => t!(","),
|
b',' => t!(","),
|
||||||
|
b'~' => t!("~"),
|
||||||
b'@' => t!("@"),
|
b'@' => t!("@"),
|
||||||
byte::CR | byte::FF | byte::LF | byte::SP | byte::VT | byte::TAB => {
|
byte::CR | byte::FF | byte::LF | byte::SP | byte::VT | byte::TAB => {
|
||||||
self.eat_whitespace();
|
self.eat_whitespace();
|
||||||
|
|
|
@ -14,6 +14,11 @@ fn parse_coordinate() {
|
||||||
test_parse!(parse_value, "(1.88, -18.0)").unwrap();
|
test_parse!(parse_value, "(1.88, -18.0)").unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn parse_like_operator() {
|
||||||
|
test_parse!(parse_value, "a ~ b").unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn parse_large_depth_object() {
|
fn parse_large_depth_object() {
|
||||||
let mut text = String::new();
|
let mut text = String::new();
|
||||||
|
|
Loading…
Reference in a new issue