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:
parent
ca6649516f
commit
1dd566a6d0
3 changed files with 129 additions and 75 deletions
|
@ -221,6 +221,7 @@ enum Capturing {
|
|||
Yes,
|
||||
}
|
||||
|
||||
// This state is used by `Parser::collect_tokens_trailing_token`.
|
||||
#[derive(Clone, Debug)]
|
||||
struct CaptureState {
|
||||
capturing: Capturing,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue