Parser of matchfile file format
The format is inspired by gitignore.
[#][!][<kind>,...] <path>
...
When the multiple kinds are specified, the condition matches when either of them matches.
The line starts with "#" is ignored as code comment. Note that the comment in the middle of the line isn't supported.
[<kind>,...]
is optional, and the default value is equal,dir,glob
.
- equal: check the equality
- dir: strings.HasPrefix
- regexp: regexp.MatchString
- glob: filepath.Match