(msg string)
| 45 | } |
| 46 | |
| 47 | func (v *globValidator) error(msg string) { |
| 48 | p := v.scan.Pos() |
| 49 | c := p.Column - 1 |
| 50 | if p.Line > 1 { |
| 51 | c = 0 |
| 52 | } |
| 53 | v.errs = append(v.errs, invalidGlobPattern{msg, c}) |
| 54 | } |
| 55 | |
| 56 | func (v *globValidator) unexpected(char rune, what, why string) { |
| 57 | unexpected := "unexpected EOF" |
no outgoing calls