mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
Userland: Prefer _string
over _short_string
As `_string` can't fail anymore (since 3434412
), there are no real
benefits to use the short variant in most cases.
This commit is contained in:
parent
a5edc9cdfc
commit
3f35ffb648
198 changed files with 684 additions and 684 deletions
|
@ -728,7 +728,7 @@ ErrorOr<Lexer::ReductionResult> Lexer::reduce_arithmetic_expansion()
|
|||
expansion.range.length = m_state.position.end_offset - expansion.range.start - m_state.position.start_offset;
|
||||
|
||||
return ReductionResult {
|
||||
.tokens = { Token::continuation("$(("_short_string) },
|
||||
.tokens = { Token::continuation("$(("_string) },
|
||||
.next_reduction = m_state.previous_reduction,
|
||||
};
|
||||
}
|
||||
|
@ -839,7 +839,7 @@ ErrorOr<Lexer::ReductionResult> Lexer::reduce_command_or_arithmetic_substitution
|
|||
|
||||
if (m_lexer.is_eof()) {
|
||||
return ReductionResult {
|
||||
.tokens = { Token::continuation("$("_short_string) },
|
||||
.tokens = { Token::continuation("$("_string) },
|
||||
.next_reduction = m_state.previous_reduction,
|
||||
};
|
||||
}
|
||||
|
@ -883,7 +883,7 @@ ErrorOr<Lexer::ReductionResult> Lexer::reduce_extended_parameter_expansion()
|
|||
|
||||
if (m_lexer.is_eof()) {
|
||||
return ReductionResult {
|
||||
.tokens = { Token::continuation("${"_short_string) },
|
||||
.tokens = { Token::continuation("${"_string) },
|
||||
.next_reduction = m_state.previous_reduction,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue