Skip to content

Commit

Permalink
fix: allow lookups with underscores (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy authored Mar 14, 2023
1 parent 4e019a5 commit 2a0b219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecsact/detail/grammar.hh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ struct whitespace {
*/
struct type_name {
static constexpr auto rule = lexy::dsl::
identifier(lexy::dsl::ascii::alpha, lexy::dsl::ascii::alnum / lexy::dsl::lit_c<'.'>);
identifier(lexy::dsl::ascii::alpha, lexy::dsl::ascii::alnum / lexy::dsl::lit_c<'.'> / lexy::dsl::lit_c<'_'>);

static constexpr auto value = lexy::as_string<std::string_view>;
};
Expand Down

0 comments on commit 2a0b219

Please sign in to comment.