mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Fix when indent in the presence of weird multiline patterns
This commit is contained in:
parent
1d51f5fbec
commit
02e07f95e7
6 changed files with 79 additions and 14 deletions
|
@ -69,6 +69,7 @@ impl<'a> Buf<'a> {
|
|||
self.beginning_of_line = false;
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
pub fn cur_line_indent(&self) -> u16 {
|
||||
debug_assert!(!self.beginning_of_line, "cur_line_indent before indent");
|
||||
self.line_indent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue