Home

Awesome

matchfile-parser

Build Status Go Report Card GitHub last commit License

Parser of matchfile file format

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.

kind

LICENSE

MIT