mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 15:03:46 +00:00
Don't minimize malformed parses by default
This commit is contained in:
parent
512be85f9a
commit
a0f828fa57
1 changed files with 5 additions and 1 deletions
|
@ -112,7 +112,11 @@ fn round_trip_once(input: Input<'_>, options: Options) -> Option<String> {
|
|||
};
|
||||
|
||||
if actual.is_malformed() {
|
||||
return Some("Initial parse is malformed".to_string());
|
||||
if options.minimize_initial_parse_error {
|
||||
return Some("Initial parse is malformed".to_string());
|
||||
} else {
|
||||
return None;
|
||||
}
|
||||
}
|
||||
|
||||
let output = actual.format();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue