Skip to content

Commit

Permalink
Merge branch 'sd/202412_3' into sd/202412_4
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed Oct 24, 2024
2 parents d7fcf09 + 6c1fbc9 commit f7a87ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions src/elements/subword/single_quoted.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ impl SingleQuoted {
pub fn parse(feeder: &mut Feeder, core: &mut ShellCore) -> Option<Self> {
match feeder.scanner_single_quoted_subword(core) {
0 => None,
n => {
let s = feeder.consume(n);
Some(SingleQuoted{ text: s })
},
n => Some(Self{ text: feeder.consume(n) }),
}
}
}
3 changes: 0 additions & 3 deletions src/feeder/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ impl Feeder {
if ! self.starts_with("'") {
return 0;
}
if self.starts_with("''") {
return 2;
}

loop {
if let Some(n) = self.remaining[1..].find("'") {
Expand Down

0 comments on commit f7a87ec

Please sign in to comment.