Skip to content

Commit

Permalink
Allow v2script identifiers to contain forward slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hop311 committed Jan 19, 2025
1 parent 907d649 commit e7cf122
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openvic-dataloader/v2script/SimpleGrammar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ namespace ovdl::v2script::grammar {
/* REQUIREMENTS: DAT-631 */
static constexpr auto comment_specifier = LEXY_LIT("#") >> lexy::dsl::until(lexy::dsl::newline).or_eof();

static constexpr auto ascii = lexy::dsl::ascii::alpha_digit_underscore / LEXY_ASCII_ONE_OF("+:@%&'-.\\");
static constexpr auto ascii = lexy::dsl::ascii::alpha_digit_underscore / LEXY_ASCII_ONE_OF("+:@%&'-.\\/");

/* REQUIREMENTS:
* DAT-632
Expand Down Expand Up @@ -82,7 +82,7 @@ namespace ovdl::v2script::grammar {

static constexpr auto data_char_class = LEXY_CHAR_CLASS("DataSpecifier", data_specifier);

static constexpr auto utf_data_specifier = lexy::dsl::unicode::xid_continue / LEXY_ASCII_ONE_OF("+:@%&'-.\\");
static constexpr auto utf_data_specifier = lexy::dsl::unicode::xid_continue / LEXY_ASCII_ONE_OF("+:@%&'-.\\/");

static constexpr auto utf_char_class = LEXY_CHAR_CLASS("DataSpecifier", utf_data_specifier);

Expand Down

0 comments on commit e7cf122

Please sign in to comment.