summaryrefslogtreecommitdiff
path: root/Userland/Shell/PosixLexer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Shell/PosixLexer.cpp')
-rw-r--r--Userland/Shell/PosixLexer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Shell/PosixLexer.cpp b/Userland/Shell/PosixLexer.cpp
index 60e18010db..1a0e82f35e 100644
--- a/Userland/Shell/PosixLexer.cpp
+++ b/Userland/Shell/PosixLexer.cpp
@@ -716,7 +716,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(String::from_utf8_short_string("$(("sv)) },
+ .tokens = { Token::continuation("$(("_short_string) },
.next_reduction = m_state.previous_reduction,
};
}
@@ -791,7 +791,7 @@ ErrorOr<Lexer::ReductionResult> Lexer::reduce_command_or_arithmetic_substitution
{
if (m_lexer.is_eof()) {
return ReductionResult {
- .tokens = { Token::continuation(String::from_utf8_short_string("$("sv)) },
+ .tokens = { Token::continuation("$("_short_string) },
.next_reduction = m_state.previous_reduction,
};
}
@@ -835,7 +835,7 @@ ErrorOr<Lexer::ReductionResult> Lexer::reduce_extended_parameter_expansion()
if (m_lexer.is_eof()) {
return ReductionResult {
- .tokens = { Token::continuation(String::from_utf8_short_string("${"sv)) },
+ .tokens = { Token::continuation("${"_short_string) },
.next_reduction = m_state.previous_reduction,
};
}