diff options
author | Spartan322 <Megacake1234@gmail.com> | 2024-05-11 20:37:50 +0200 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2024-05-11 22:27:30 +0200 |
commit | 458180da5e61887cd9f820e573f307d0a640128d (patch) | |
tree | c0b7aa641b72b5f2650691cba22d17de335622f6 /src/openvic-dataloader/v2script/ModifierGrammar.hpp | |
parent | 725310939d2b324d79ea4193a72000e21dcc1a2a (diff) |
Fix bugs in #37fix/error-handling
Fix error handling dropping errors
Fix error handling segfaults
Improve error messages
Diffstat (limited to 'src/openvic-dataloader/v2script/ModifierGrammar.hpp')
-rw-r--r-- | src/openvic-dataloader/v2script/ModifierGrammar.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-dataloader/v2script/ModifierGrammar.hpp b/src/openvic-dataloader/v2script/ModifierGrammar.hpp index 5b937d5..d6dbb32 100644 --- a/src/openvic-dataloader/v2script/ModifierGrammar.hpp +++ b/src/openvic-dataloader/v2script/ModifierGrammar.hpp @@ -15,8 +15,8 @@ #include "detail/dsl.hpp" namespace ovdl::v2script::grammar { - constexpr auto modifier_keyword = LEXY_KEYWORD("modifier", lexy::dsl::inline_<Identifier<StringEscapeOption>>); - constexpr auto factor_keyword = LEXY_KEYWORD("factor", lexy::dsl::inline_<Identifier<StringEscapeOption>>); + constexpr auto modifier_keyword = LEXY_KEYWORD("modifier", id); + constexpr auto factor_keyword = LEXY_KEYWORD("factor", id); struct FactorStatement { static constexpr auto rule = lexy::dsl::position(factor_keyword) >> (lexy::dsl::equal_sign + lexy::dsl::p<Identifier<StringEscapeOption>>); |