Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
Cypher1 committed May 6, 2024
1 parent 38cb2fe commit c5bd567
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions takolib/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,11 @@ impl<'src, 'toks, T: Iterator<Item = &'toks Token>> ParseState<'src, 'toks, T> {
let mut args = vec![];
let mut _has_non_bind_args = false;
while self.operator_is(Symbol::CloseParen).is_err() {
let arg = self.binding_or_arg(&mut _has_non_bind_args)?;
args.push(arg);
args.push(self.binding_or_arg(&mut _has_non_bind_args)?);
if self.require(TokenType::Op(Symbol::Comma)).is_err() {
self.require(TokenType::Op(Symbol::CloseParen))?;
break;
}
}
let args = self.handle_bindings(args)?.into();
left = self.ast.add_call(Call { inner: left, args }, location);
Expand Down
2 changes: 2 additions & 0 deletions takolib/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ fn file_and_options(file: &PathBuf) -> (String, TestConfig) {

#[test_each::path(glob = "examples/*.tk")]
fn parse_example_files(file: PathBuf) {
crate::ensure_initialized();

let (contents, setting) = file_and_options(&file);
if false && setting.todo {
info!("Skipping todo file: {file:#?}");
Expand Down

0 comments on commit c5bd567

Please sign in to comment.