mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
Shell: Allow underscores in normal expansion names
This commit is contained in:
parent
a6d77162f4
commit
d56fbaa7e8
Notes:
sideshowbarker
2024-07-17 06:40:21 +09:00
Author: https://github.com/alimpfard
Commit: d56fbaa7e8
Pull-request: https://github.com/SerenityOS/serenity/pull/17493
1 changed files with 1 additions and 1 deletions
|
@ -773,7 +773,7 @@ Lexer::ReductionResult Lexer::reduce_parameter_expansion()
|
|||
}
|
||||
|
||||
auto next = m_lexer.peek();
|
||||
if (is_ascii_alphanumeric(next)) {
|
||||
if (is_ascii_alphanumeric(next) || next == '_') {
|
||||
m_state.buffer.append(consume());
|
||||
expansion.parameter.append(next);
|
||||
expansion.range.length = m_state.position.end_offset - expansion.range.start - m_state.position.start_offset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue