{"comment":{"created_at":"2011-10-22T07:05:04Z","body":"I think, to write this program in a common language, such as C, C++, Java, or something else, is appropriate. After this external program parses the .editorconfig file, it send the parsing result to the editor plugin in a pipe (or something similar). So, I think it's time for us to choose the language of the external program and the structure of the parser. Do you think so?","updated_at":"2011-10-22T07:05:04Z","url":"https://api.github.com/repos/treyhunner/editorconfig-vim/issues/comments/2488743","id":2488743,"user":{"gravatar_id":"756510c4cc0e0b44234f301faf4a434d","avatar_url":"https://secure.gravatar.com/avatar/756510c4cc0e0b44234f301faf4a434d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/xuhdev","id":325476,"login":"xuhdev"}},"action":"created","issue":{"number":2,"created_at":"2011-10-20T15:45:27Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"The following 3 bullet points from [the .gitignore manpage](http://manpages.ubuntu.com/manpages/natty/man5/gitignore.5.html#contenttoc3) should apply to editorconfig file matching as well.\r\n\r\n* If the pattern does not contain a slash /, git treats it as a shellglob pattern and checks for a match against the pathname relative to the location of the .gitignore file (relative to the toplevel of the work tree if not from a .gitignore file).\r\n* Otherwise, git treats the pattern as a shell glob suitable for consumption by fnmatch(3) with the FNM_PATHNAME flag: wildcards in the pattern will not match a / in the pathname. For example, \"Documentation/*.html\" matches \"Documentation/git.html\" but not \"Documentation/ppc/ppc.html\" or \"tools/perf/Documentation/perf.html\".\r\n* A leading slash matches the beginning of the pathname. For example, \"/*.c\" matches \"cat-file.c\" but not \"mozilla-sha1/sha1.c\".\r\n\r\nThe vim `globpath` command should be used instead of `glob` because it works similarly to [fnmatch](http://manpages.ubuntu.com/manpages/natty/man3/fnmatch.3.html).","comments":3,"title":"Fix file pattern to work like .gitignore files","updated_at":"2011-10-22T07:05:05Z","url":"https://api.github.com/repos/treyhunner/editorconfig-vim/issues/2","id":2006115,"assignee":{"gravatar_id":"03a56d0d4c0945aae9722153223e8fc1","avatar_url":"https://secure.gravatar.com/avatar/03a56d0d4c0945aae9722153223e8fc1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/treyhunner","id":285352,"login":"treyhunner"},"milestone":null,"closed_at":null,"user":{"gravatar_id":"03a56d0d4c0945aae9722153223e8fc1","avatar_url":"https://secure.gravatar.com/avatar/03a56d0d4c0945aae9722153223e8fc1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/treyhunner","id":285352,"login":"treyhunner"},"html_url":"https://github.com/treyhunner/editorconfig-vim/issues/2","labels":[],"state":"open"},"legacy":{"issue_id":2006115,"comment_id":2488743}}