From 338bb84a5f5f883fb50fbe4f64398ab40dad74fe Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Fri, 15 Sep 2023 13:13:28 -0400 Subject: Add ParseOptions: NoEscapeString to true to prevent escape behavior in strings Event and Decision grammars use string escaping (for now) Update lexy to latest master: Use `git submodule update --init --recursive` --- src/openvic-dataloader/v2script/ModifierGrammar.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/openvic-dataloader/v2script/ModifierGrammar.hpp') diff --git a/src/openvic-dataloader/v2script/ModifierGrammar.hpp b/src/openvic-dataloader/v2script/ModifierGrammar.hpp index 632cfd5..96e928c 100644 --- a/src/openvic-dataloader/v2script/ModifierGrammar.hpp +++ b/src/openvic-dataloader/v2script/ModifierGrammar.hpp @@ -8,11 +8,11 @@ #include "TriggerGrammar.hpp" namespace ovdl::v2script::grammar { - constexpr auto modifier_keyword = LEXY_KEYWORD("modifier", lexy::dsl::inline_); - constexpr auto factor_keyword = LEXY_KEYWORD("factor", lexy::dsl::inline_); + constexpr auto modifier_keyword = LEXY_KEYWORD("modifier", lexy::dsl::inline_>); + constexpr auto factor_keyword = LEXY_KEYWORD("factor", lexy::dsl::inline_>); struct FactorStatement { - static constexpr auto rule = factor_keyword >> lexy::dsl::equal_sign + lexy::dsl::inline_; + static constexpr auto rule = factor_keyword >> lexy::dsl::equal_sign + lexy::dsl::inline_>; static constexpr auto value = lexy::as_string | lexy::new_; }; -- cgit v1.2.3-56-ga3b1