Parse variables (starting with $)
(input: &str)
| 1843 | |
| 1844 | /// Parse variables (starting with $) |
| 1845 | fn variable(input: &str) -> IResult<&str, &str> { |
| 1846 | map( |
| 1847 | recognize(pair(char('$'), identifier)), |
| 1848 | |s: &str| &s[1..], // Strip the $ prefix |
| 1849 | )(input) |
| 1850 | } |
| 1851 | |
| 1852 | /// Parse identifiers |
| 1853 | fn identifier(input: &str) -> IResult<&str, &str> { |
nothing calls this directly
no outgoing calls
no test coverage detected