diff options
author | Hop311 <Hop3114@gmail.com> | 2023-09-15 21:46:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-15 21:46:26 +0200 |
commit | 8f71abc25ec993ce7e85f5342a52fb456bdba26f (patch) | |
tree | e9a6f4e6a7b3d8df0744747adf525462924425f4 /src/openvic-dataloader/v2script/EffectGrammar.hpp | |
parent | 2564d91f23a0b2a332d0d72023caa4091a56d1f1 (diff) | |
parent | 338bb84a5f5f883fb50fbe4f64398ab40dad74fe (diff) |
Merge pull request #15 from OpenVicProject/fix/escaping
Add ParseOptions
Diffstat (limited to 'src/openvic-dataloader/v2script/EffectGrammar.hpp')
-rw-r--r-- | src/openvic-dataloader/v2script/EffectGrammar.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-dataloader/v2script/EffectGrammar.hpp b/src/openvic-dataloader/v2script/EffectGrammar.hpp index 9f164b2..1b85382 100644 --- a/src/openvic-dataloader/v2script/EffectGrammar.hpp +++ b/src/openvic-dataloader/v2script/EffectGrammar.hpp @@ -9,7 +9,7 @@ namespace ovdl::v2script::grammar { struct EffectStatement { - static constexpr auto rule = lexy::dsl::inline_<SimpleAssignmentStatement>; + static constexpr auto rule = lexy::dsl::inline_<SimpleAssignmentStatement<StringEscapeOption>>; static constexpr auto value = lexy::callback<ast::NodePtr>( [](auto name, auto&& initalizer) { @@ -18,7 +18,7 @@ namespace ovdl::v2script::grammar { }; struct EffectList { - static constexpr auto rule = lexy::dsl::list(lexy::dsl::p<SimpleAssignmentStatement>); + static constexpr auto rule = lexy::dsl::list(lexy::dsl::p<SimpleAssignmentStatement<StringEscapeOption>>); static constexpr auto value = lexy::as_list<std::vector<ast::NodePtr>> >> |