Skip to content

Commit 8c81b3a

Browse files
committed
Add code
1 parent 0e9be2d commit 8c81b3a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/elements/subword.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
//SPDX-License-Identifier: BSD-3-Clause
33

44
mod escaped_char;
5+
mod parameter;
56
mod simple;
67
mod single_quoted;
78

89
use crate::{Feeder, ShellCore};
910
use std::fmt;
1011
use self::escaped_char::EscapedChar;
12+
use self::parameter::Parameter;
1113
use self::simple::SimpleSubword;
1214
use self::single_quoted::SingleQuoted;
1315
use std::fmt::Debug;
@@ -41,6 +43,7 @@ pub trait Subword {
4143
pub fn parse(feeder: &mut Feeder, core: &mut ShellCore) -> Option<Box<dyn Subword>> {
4244
if let Some(a) = SingleQuoted::parse(feeder, core){ Some(Box::new(a)) }
4345
else if let Some(a) = EscapedChar::parse(feeder, core){ Some(Box::new(a)) }
46+
else if let Some(a) = Parameter::parse(feeder, core){ Some(Box::new(a)) }
4447
else if let Some(a) = SimpleSubword::parse(feeder){ Some(Box::new(a)) }
4548
else{ None }
4649
}

0 commit comments

Comments
 (0)