3 // skipper is used to skip certain blocks of an ini file.
4 // Currently skipper is used to skip nested blocks of ini
5 // files. See example below
8 // nested = ; this section will be skipped
11 // bar=baz ; this will be included
18 func newSkipper() skipper {
24 func (s *skipper) ShouldSkip(tok Token) bool {
26 s.prevTok.Type() == TokenNL &&
27 tok.Type() != TokenWS {
37 func (s *skipper) Skip() {
39 s.prevTok = emptyToken
42 func (s *skipper) Continue() {
44 s.prevTok = emptyToken