aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-dataloader/v2script/SimpleGrammar.hpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-09-16 14:53:29 +0200
committer Hop311 <hop3114@gmail.com>2023-09-16 14:53:29 +0200
commit34d694194eb98937c33e684d9ca98c8babd4dfcb (patch)
tree5d25c8baadcb97111179ca06dc5243f1f3f8509f /src/openvic-dataloader/v2script/SimpleGrammar.hpp
parent8f71abc25ec993ce7e85f5342a52fb456bdba26f (diff)
StatementListBlocks no longer require key = {...}
Diffstat (limited to 'src/openvic-dataloader/v2script/SimpleGrammar.hpp')
-rw-r--r--src/openvic-dataloader/v2script/SimpleGrammar.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openvic-dataloader/v2script/SimpleGrammar.hpp b/src/openvic-dataloader/v2script/SimpleGrammar.hpp
index 2679598..160ab92 100644
--- a/src/openvic-dataloader/v2script/SimpleGrammar.hpp
+++ b/src/openvic-dataloader/v2script/SimpleGrammar.hpp
@@ -135,7 +135,8 @@ namespace ovdl::v2script::grammar {
(lexy::dsl::equal_sign >>
(lexy::dsl::p<ValueExpression<Options>> | lexy::dsl::recurse_branch<StatementListBlock<Options>>) |
lexy::dsl::else_ >> lexy::dsl::return_) |
- lexy::dsl::p<StringExpression<Options>>;
+ lexy::dsl::p<StringExpression<Options>> |
+ lexy::dsl::recurse_branch<StatementListBlock<Options>>;
static constexpr auto value = lexy::callback<ast::NodePtr>(
[](const char* pos, auto name, lexy::nullopt = {}) {