more unit tests, better highlighting
This commit is contained in:
@@ -64,7 +64,6 @@ impl ParsedSrc {
|
||||
pub fn parse_src(&mut self) -> Result<(),Vec<ShErr>> {
|
||||
let mut tokens = vec![];
|
||||
for lex_result in LexStream::new(self.src.clone(), LexFlags::empty()) {
|
||||
flog!(DEBUG, lex_result);
|
||||
match lex_result {
|
||||
Ok(token) => tokens.push(token),
|
||||
Err(error) => return Err(vec![error])
|
||||
@@ -1417,7 +1416,6 @@ impl Iterator for ParseStream {
|
||||
}
|
||||
}
|
||||
let result = self.parse_cmd_list();
|
||||
flog!(DEBUG, result);
|
||||
match result {
|
||||
Ok(Some(node)) => {
|
||||
Some(Ok(node))
|
||||
|
||||
Reference in New Issue
Block a user