MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / backtick_identifier

Function backtick_identifier

graphlite/src/ast/lexer.rs:1693–1698  ·  view source on GitHub ↗

Parse backtick-delimited identifier (ISO GQL compliant) Example: `My-Identifier`, `Property Name`, `Type-123` Escape sequence: `` (double backtick) for literal backtick

(input: &str)

Source from the content-addressed store, hash-verified

1691/// Example: `My-Identifier`, `Property Name`, `Type-123`
1692/// Escape sequence: `` (double backtick) for literal backtick
1693fn 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
1701fn escaped_backtick_content(input: &str) -> IResult<&str, &str> {

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected