mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Format Num, Str and fix off-by-one bug
This commit is contained in:
parent
521f1e2c6c
commit
e293a8d4fa
3 changed files with 14 additions and 53 deletions
|
@ -388,7 +388,6 @@ fn eat_line_comment<'a>(
|
|||
}
|
||||
b'\n' => {
|
||||
state = state.advance_newline();
|
||||
index += 1;
|
||||
multiline = true;
|
||||
comments_and_newlines.push(CommentOrNewline::Newline);
|
||||
}
|
||||
|
@ -424,7 +423,7 @@ fn eat_line_comment<'a>(
|
|||
};
|
||||
}
|
||||
|
||||
_ => false,
|
||||
Some(_) => false,
|
||||
}
|
||||
} else {
|
||||
false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue