Skip to content

Commit

Permalink
Skip whitespace before starting to parse the children of a node
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Apr 26, 2024
1 parent 5b84933 commit 9c30356
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/lexy/dsl/parse_tree_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ struct _nr : branch_base
auto child_reader = Derived::node_child_reader(reader);
reader.reset(end);

using rule_parser = lexy::parser_for<R, _cont<NextParser>>;
using rule_parser
= lexy::whitespace_parser<Context, lexy::parser_for<R, _cont<NextParser>>>;
if (auto rule_succeded = false;
rule_parser::parse(context, child_reader, rule_succeded, reader, LEXY_FWD(args)...))
{
Expand Down

0 comments on commit 9c30356

Please sign in to comment.