MCPcopy Create free account
hub / github.com/cosdata/cosdata / identifier

Function identifier

org/src/cosql.rs:17–22  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

15// Common parsers (same as before)
16
17fn identifier(input: &str) -> IResult<&str, &str> {
18 recognize(pair(
19 alt((alpha1, tag("_"))),
20 many0(alt((alphanumeric1, tag("_")))),
21 ))(input)
22}
23
24fn string_literal(input: &str) -> IResult<&str, &str> {
25 delimited(char('"'), take_while1(|c| c != '"'), char('"'))(input)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected