(buf: &mut LexBuf)
| 336 | } |
| 337 | |
| 338 | fn lex_to_adjacent_string(buf: &mut LexBuf) -> bool { |
| 339 | // Adjacent string literals that are separated by whitespace are |
| 340 | // concatenated if and only if that whitespace contains at least one newline |
| 341 | // character. This bizarre rule matches PostgreSQL and the SQL standard. |
| 342 | let whitespace = buf.take_while(|ch| ch.is_ascii_whitespace()); |
| 343 | whitespace.contains(&['\n', '\r'][..]) && buf.consume('\'') |
| 344 | } |
| 345 | |
| 346 | fn lex_dollar_string(buf: &mut LexBuf) -> Result<Token, LexerError> { |
| 347 | let pos = buf.pos() - 1; |
no test coverage detected