Whether the parser matches the file name.
bool matches(String path) => pattern.allMatches(path).isNotEmpty;