diff --git a/core/src/syn/lexer/byte.rs b/core/src/syn/lexer/byte.rs index 5d30fb98..db5dc1e3 100644 --- a/core/src/syn/lexer/byte.rs +++ b/core/src/syn/lexer/byte.rs @@ -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(); diff --git a/core/src/syn/parser/test/value.rs b/core/src/syn/parser/test/value.rs index 7f7905c0..5e6c2113 100644 --- a/core/src/syn/parser/test/value.rs +++ b/core/src/syn/parser/test/value.rs @@ -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();