diff options
author | Spartan322 <Megacake1234@gmail.com> | 2023-09-15 19:13:28 +0200 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2023-09-15 19:46:18 +0200 |
commit | 338bb84a5f5f883fb50fbe4f64398ab40dad74fe (patch) | |
tree | e9a6f4e6a7b3d8df0744747adf525462924425f4 /src/openvic-dataloader/v2script/Parser.cpp | |
parent | 2564d91f23a0b2a332d0d72023caa4091a56d1f1 (diff) |
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`
Diffstat (limited to 'src/openvic-dataloader/v2script/Parser.cpp')
-rw-r--r-- | src/openvic-dataloader/v2script/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-dataloader/v2script/Parser.cpp b/src/openvic-dataloader/v2script/Parser.cpp index 0ff7612..9e74e32 100644 --- a/src/openvic-dataloader/v2script/Parser.cpp +++ b/src/openvic-dataloader/v2script/Parser.cpp @@ -175,7 +175,7 @@ bool Parser::simple_parse() { _warnings.push_back(warnings::make_utf8_warning(_file_path)); } - auto errors = _buffer_handler->parse<grammar::File>(ovdl::detail::ReporError.path(_file_path).to(detail::OStreamOutputIterator { _error_stream })); + auto errors = _buffer_handler->parse<grammar::File<grammar::NoStringEscapeOption>>(ovdl::detail::ReporError.path(_file_path).to(detail::OStreamOutputIterator { _error_stream })); if (errors) { _errors.reserve(errors->size()); for (auto& err : errors.value()) { |