improved private tag parsing

This commit is contained in:
Folkert 2021-03-10 17:26:42 +01:00
parent edd54ab4ab
commit ea32a37315
4 changed files with 242 additions and 70 deletions

View file

@ -3012,7 +3012,7 @@ fn what_is_next<'a>(source_lines: &'a [&'a str], row: Row, col: Col) -> Next<'a>
}
}
fn starts_with_keyword(rest_of_line: &str, keyword: &str) -> bool {
pub fn starts_with_keyword(rest_of_line: &str, keyword: &str) -> bool {
if let Some(stripped) = rest_of_line.strip_prefix(keyword) {
match stripped.chars().next() {
None => true,