(lines: &[String])
| 2574 | } |
| 2575 | |
| 2576 | fn strip_comments_preserving_lines(lines: &[String]) -> String { |
| 2577 | let mut in_block_comment = false; |
| 2578 | lines |
| 2579 | .iter() |
| 2580 | .map(|line| { |
| 2581 | let visible = strip_block_comments_from_line(line, &mut in_block_comment); |
| 2582 | split_line_comment(&visible).to_string() |
| 2583 | }) |
| 2584 | .collect::<Vec<_>>() |
| 2585 | .join("\n") |
| 2586 | } |
| 2587 | |
| 2588 | fn is_ascii_word_byte(byte: u8) -> bool { |
| 2589 | byte.is_ascii_alphanumeric() || byte == b'_' |
no test coverage detected