Scripting bug fixes and more tests

This commit is contained in:
2025-03-16 03:22:17 -04:00
parent 92d7766765
commit 51d735073f
21 changed files with 4846 additions and 823 deletions

View File

@@ -9,6 +9,7 @@ fn simple_expansion() {
write_vars(|v| v.new_var("foo", "this is the value of the variable".into()));
let mut tokens: Vec<Tk> = LexStream::new(varsub, LexFlags::empty())
.map(|tk| tk.unwrap())
.filter(|tk| !matches!(tk.class, TkRule::EOI | TkRule::SOI))
.collect();
let var_tk = tokens.pop().unwrap();