add unit tests for not consuming matchers

This commit is contained in:
Jan
2021-02-13 16:18:53 +01:00
parent 32f815c378
commit f14357537e
2 changed files with 56 additions and 1 deletions

View File

@ -95,6 +95,9 @@ public:
result.m_captures.emplace_back(m_capture_id, match);
}
if (m_no_consume)
result.m_consumed_token_count = 0;
return result;
}
};