aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-dataloader/v2script/SimpleGrammar.hpp
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-10-05 01:38:17 +0200
committer GitHub <noreply@github.com>2023-10-05 01:38:17 +0200
commit4009e1d576ad177aff59c8fce0339963303fc6e5 (patch)
tree4456832acce290261f5839a083018afbd154ba16 /src/openvic-dataloader/v2script/SimpleGrammar.hpp
parent02c30fdda7b775782af1163b2321e7d6fcf01fcc (diff)
parent7b1e33c26b4d36be2e3d1292dc539ff17e358589 (diff)
Merge pull request #22 from OpenVicProject/add/v2script-optional-content
Diffstat (limited to 'src/openvic-dataloader/v2script/SimpleGrammar.hpp')
-rw-r--r--src/openvic-dataloader/v2script/SimpleGrammar.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-dataloader/v2script/SimpleGrammar.hpp b/src/openvic-dataloader/v2script/SimpleGrammar.hpp
index a065c7f..9bddabd 100644
--- a/src/openvic-dataloader/v2script/SimpleGrammar.hpp
+++ b/src/openvic-dataloader/v2script/SimpleGrammar.hpp
@@ -183,7 +183,7 @@ namespace ovdl::v2script::grammar {
// Allow arbitrary spaces between individual tokens.
static constexpr auto whitespace = whitespace_specifier | comment_specifier;
- static constexpr auto rule = lexy::dsl::position + lexy::dsl::terminator(lexy::dsl::eof).list(lexy::dsl::p<AssignmentStatement<Options>>);
+ static constexpr auto rule = lexy::dsl::position + lexy::dsl::terminator(lexy::dsl::eof).opt_list(lexy::dsl::p<AssignmentStatement<Options>>);
static constexpr auto value = lexy::as_list<std::vector<ast::NodePtr>> >> lexy::new_<ast::FileNode, ast::NodePtr>;
};