Open XAMPPRocky opened 4 years ago
This seems fine to me. A PR is welcome. The docs for advance_to
probably need a bit of detail. e.g., If the position you advance to is in the middle of a line, then the subsequent line reported may be incomplete (missing the part of the line before the position it was advanced to).
I've been using
grep_searcher::LineStep
for a new feature in tokei that requires the level of control it provides and it has been great to use so far. The one minor nit I've come across is that is no way to advanceLineStep
withoutnext
, when there are times where I want to be able to skip to a certain part of the file. This is currently possible by creating a newLineStep
that starts at that position, but it would be nice if I didn't need to re-assign just to updateLineStep
's position.Example