vendor: update dependencies to latest

This commit is contained in:
Nick Craig-Wood 2018-11-24 15:31:25 +00:00
parent 58f7141c96
commit 89625e54cf
173 changed files with 4954 additions and 2224 deletions

View file

@ -5,10 +5,10 @@ package ini
// files. See example below
//
// [ foo ]
// nested = // this section will be skipped
// nested = ; this section will be skipped
// a=b
// c=d
// bar=baz // this will be included
// bar=baz ; this will be included
type skipper struct {
shouldSkip bool
TokenSet bool
@ -22,7 +22,10 @@ func newSkipper() skipper {
}
func (s *skipper) ShouldSkip(tok Token) bool {
if s.shouldSkip && s.prevTok.Type() == TokenNL && tok.Type() != TokenWS {
if s.shouldSkip &&
s.prevTok.Type() == TokenNL &&
tok.Type() != TokenWS {
s.Continue()
return false
}