MCPcopy Create free account
hub / github.com/PerroEngine/Perro / parse_string_literal

Function parse_string_literal

perro_source/render_stack/perro_macros/src/lib.rs:99–105  ·  view source on GitHub ↗
(raw: &str)

Source from the content-addressed store, hash-verified

97 ] if ident.to_string() == "concat" && p.as_char() == '!' => parse_concat(group),
98 _ => Err(
99 "expected path, include_str!(\"path\"), or concat!(include_str!(...), ...)".to_string(),
100 ),
101 }
102}
103
104fn parse_concat(group: &Group) -> Result<Vec<String>, String> {
105 if group.delimiter() != Delimiter::Parenthesis {
106 return Err("concat! must use parentheses".to_string());
107 }
108 let mut paths = Vec::new();

Callers 2

parse_inputFunction · 0.85
parse_include_strFunction · 0.85

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected