Parse comments
(input: &str)
| 1611 | |
| 1612 | /// Parse comments |
| 1613 | fn 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 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected