Parse backtick-delimited identifier (ISO GQL compliant) Example: `My-Identifier`, `Property Name`, `Type-123` Escape sequence: `` (double backtick) for literal backtick
(input: &str)
| 1691 | /// Example: `My-Identifier`, `Property Name`, `Type-123` |
| 1692 | /// Escape sequence: `` (double backtick) for literal backtick |
| 1693 | fn backtick_identifier(input: &str) -> IResult<&str, &str> { |
| 1694 | map( |
| 1695 | recognize(pair(char('`'), pair(escaped_backtick_content, char('`')))), |
| 1696 | |s: &str| &s[1..s.len() - 1], // Strip backticks |
| 1697 | )(input) |
| 1698 | } |
| 1699 | |
| 1700 | /// Parse backtick-delimited content with double-backtick escape |
| 1701 | fn escaped_backtick_content(input: &str) -> IResult<&str, &str> { |