mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
Always combine line,column into Position
This commit is contained in:
parent
f19220473a
commit
4d7070ce3b
22 changed files with 1181 additions and 1293 deletions
|
@ -67,7 +67,7 @@ fn chomp_number_base<'a>(
|
|||
|
||||
let string = unsafe { std::str::from_utf8_unchecked(&bytes[..chomped]) };
|
||||
|
||||
let new = state.advance_without_indenting_ee(chomped + 2 + is_negative as usize, |_, _| {
|
||||
let new = state.advance_without_indenting_ee(chomped + 2 + is_negative as usize, |_| {
|
||||
ENumber::LineTooLong
|
||||
})?;
|
||||
|
||||
|
@ -102,7 +102,7 @@ fn chomp_number_dec<'a>(
|
|||
let string =
|
||||
unsafe { std::str::from_utf8_unchecked(&state.bytes()[0..chomped + is_negative as usize]) };
|
||||
|
||||
let new = state.advance_without_indenting_ee(chomped + is_negative as usize, |_, _| {
|
||||
let new = state.advance_without_indenting_ee(chomped + is_negative as usize, |_| {
|
||||
ENumber::LineTooLong
|
||||
})?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue