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

Function comment

graphlite/src/ast/lexer.rs:1613–1623  ·  view source on GitHub ↗

Parse comments

(input: &str)

Source from the content-addressed store, hash-verified

1611
1612/// Parse comments
1613fn comment(input: &str) -> IResult<&str, &str> {
1614 alt((
1615 // C++-style single line comment
1616 recognize(pair(tag("//"), take_while(|c| c != '\n'))),
1617 // Multi-line comment
1618 recognize(tuple((tag("/*"), take_while(|c| c != '*'), tag("*/")))),
1619 // Note: SQL-style comments (-- ...) are not handled at the lexer level
1620 // to avoid conflicts with edge patterns like -- or -->
1621 // They should be handled at the parser level if needed
1622 ))(input)
1623}
1624
1625/// Parse function calls like upper(...), count(...), etc.
1626///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected