lexer: Consume invalid characters

This commit is contained in:
2023-10-25 19:28:54 -05:00
parent 32bde2f749
commit 5c4c8bcb80
2 changed files with 9 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ fn lex_tokens(file: &str, path: Option<&Path>) -> Result<(), Box<dyn Error>> {
Ok(t) => t,
Err(e) => {
println!("{e:?}");
break;
continue;
},
};
if let Some(path) = path {