fixed comments breaking the parser

This commit is contained in:
2026-03-05 01:26:42 -05:00
parent 8658860ddd
commit 234f93ee56
6 changed files with 148 additions and 9 deletions

View File

@@ -87,6 +87,7 @@ impl ParsedSrc {
Err(error) => return Err(vec![error]),
}
}
log::debug!("Tokens: {:#?}", tokens);
let mut errors = vec![];
let mut nodes = vec![];
@@ -1595,7 +1596,6 @@ impl ParseStream {
redirs.push(redir);
}
}
TkRule::Comment => { /* Skip comments in command position */ }
_ => unimplemented!("Unexpected token rule `{:?}` in parse_cmd()", tk.class),
}
}