mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
improved private tag parsing
This commit is contained in:
parent
edd54ab4ab
commit
ea32a37315
4 changed files with 242 additions and 70 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue