mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Ignore carriage returns
This commit is contained in:
parent
3fc500cf1c
commit
d5116d01b4
1 changed files with 4 additions and 0 deletions
|
@ -235,6 +235,10 @@ fn spaces<'a>(
|
|||
// indentation yet, but maybe it will be after more spaces happen!
|
||||
state = state.advance_spaces(1)?;
|
||||
}
|
||||
'\r' => {
|
||||
// Ignore carriage returns.
|
||||
state = state.advance_spaces(1)?;
|
||||
}
|
||||
'\n' => {
|
||||
// No need to check indentation because we're about to reset it anyway.
|
||||
state = state.newline()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue