1
Fork 0

Overhaul comments in collect_tokens_trailing_token.

Adding details, clarifying lots of little things, etc. In particular,
the commit adds details of an example. I find this very helpful, because
it's taken me a long time to understand how this code works.
This commit is contained in:
Nicholas Nethercote 2024-07-15 10:37:27 +10:00
parent ca6649516f
commit 1dd566a6d0
3 changed files with 129 additions and 75 deletions

View file

@ -221,6 +221,7 @@ enum Capturing {
Yes,
}
// This state is used by `Parser::collect_tokens_trailing_token`.
#[derive(Clone, Debug)]
struct CaptureState {
capturing: Capturing,