diff --git a/compiler/frontend/src/string_to_rcst/expression.rs b/compiler/frontend/src/string_to_rcst/expression.rs index 51491c843..354a3ed8e 100644 --- a/compiler/frontend/src/string_to_rcst/expression.rs +++ b/compiler/frontend/src/string_to_rcst/expression.rs @@ -328,7 +328,7 @@ fn expression_suffix_assignment<'a>( let just_the_assignment_sign = assignment_sign.clone(); let input_after_assignment_sign = input; - let (input, more_whitespace) = whitespaces_and_newlines(input, indentation + 1, false); + let (input, more_whitespace) = whitespaces_and_newlines(input, indentation + 1, true); assignment_sign = assignment_sign.wrap_in_whitespace(more_whitespace); let is_multiline = left.is_multiline() || assignment_sign.is_multiline(); diff --git a/compiler/frontend/src/string_to_rcst/function.rs b/compiler/frontend/src/string_to_rcst/function.rs index d334055dd..60b5aca1b 100644 --- a/compiler/frontend/src/string_to_rcst/function.rs +++ b/compiler/frontend/src/string_to_rcst/function.rs @@ -15,7 +15,7 @@ pub fn function(input: &str, indentation: usize) -> Option<(&str, Rcst)> { let (input, opening_curly_brace) = opening_curly_brace(input)?; let (input, mut opening_curly_brace, mut parameters_and_arrow) = { let input_without_params = input; - let opening_curly_brace_wihout_params = opening_curly_brace.clone(); + let opening_curly_brace_without_params = opening_curly_brace.clone(); let mut input = input; let mut opening_curly_brace = opening_curly_brace; @@ -50,7 +50,7 @@ pub fn function(input: &str, indentation: usize) -> Option<(&str, Rcst)> { Some((input, arrow)) => (input, opening_curly_brace, Some((parameters, arrow))), None => ( input_without_params, - opening_curly_brace_wihout_params, + opening_curly_brace_without_params, None, ), }