summaryrefslogtreecommitdiff
path: root/Userland/Shell/PosixLexer.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-02-28 13:50:29 +0000
committerLinus Groh <mail@linusgroh.de>2023-02-28 15:15:36 +0000
commit51c3967516cdce42d40c26debaec7f6ef949420b (patch)
tree60292c772c23b3d1c2cdece4ac6cdd28f2152c6c /Userland/Shell/PosixLexer.cpp
parentd0ba5f2ed7d2fa397328638457083876338b34e3 (diff)
downloadserenity-51c3967516cdce42d40c26debaec7f6ef949420b.zip
Everywhere: Use '_{short_,}string' literals more
This mostly updates code what was written before but merged after these were added.
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,
};
}