diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2024-04-29 19:57:05 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2024-04-29 19:57:05 +0200 |
commit | 889abdf277e4e846d4becac94d79c06078cf8e39 (patch) | |
tree | c50c65beabde4dab843011994f952c5a287eeeb3 /crates/rebel-parse | |
parent | 41982de3beb59b26c57f2627a7d74f223831e75f (diff) | |
download | rebel-889abdf277e4e846d4becac94d79c06078cf8e39.tar rebel-889abdf277e4e846d4becac94d79c06078cf8e39.zip |
rebel-parse: recipe: actually store fetch block in AST
Diffstat (limited to 'crates/rebel-parse')
-rw-r--r-- | crates/rebel-parse/src/grammar/recipe.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rebel-parse/src/grammar/recipe.rs b/crates/rebel-parse/src/grammar/recipe.rs index 73ddb2e..7b5d5d6 100644 --- a/crates/rebel-parse/src/grammar/recipe.rs +++ b/crates/rebel-parse/src/grammar/recipe.rs @@ -20,7 +20,7 @@ peg::parser! { pub rule recipe_stmt() -> ast::RecipeStmt<'a> = [Token::Keyword(Keyword::Fetch)] name:ident() p('{') body:body() p('}') { - ast::RecipeStmt::Fetch { name, body: ast::Body(Vec::new()) } + ast::RecipeStmt::Fetch { name, body } } / [Token::Keyword(Keyword::Task)] name:ident() p('(') params:func_params() p(')') p('{') body:body() p('}') { |