mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
More incremental changes
This commit is contained in:
parent
1b257da356
commit
721233f9c8
5 changed files with 27 additions and 31 deletions
|
@ -276,10 +276,7 @@ fn chomp_accessor(buffer: &[u8], pos: Position) -> Result<&str, BadIdent> {
|
|||
}
|
||||
Err(_) => {
|
||||
// we've already made progress with the initial `.`
|
||||
Err(BadIdent::StrayDot(Position {
|
||||
line: pos.line,
|
||||
column: pos.column + 1,
|
||||
}))
|
||||
Err(BadIdent::StrayDot(pos.bump_column(1)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -301,10 +298,7 @@ fn chomp_private_tag(buffer: &[u8], pos: Position) -> Result<&str, BadIdent> {
|
|||
Ok(value)
|
||||
}
|
||||
}
|
||||
Err(_) => Err(BadIdent::BadPrivateTag(Position {
|
||||
line: pos.line,
|
||||
column: pos.column + 1,
|
||||
})),
|
||||
Err(_) => Err(BadIdent::BadPrivateTag(pos.bump_column(1))),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue