(raw: &str)
| 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 | |
| 104 | fn 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(); |
no test coverage detected