{"action":"created","issue":{"url":"https://api.github.com/repos/github/linguist/issues/2170","labels_url":"https://api.github.com/repos/github/linguist/issues/2170/labels{/name}","comments_url":"https://api.github.com/repos/github/linguist/issues/2170/comments","events_url":"https://api.github.com/repos/github/linguist/issues/2170/events","html_url":"https://github.com/github/linguist/pull/2170","id":59106946,"number":2170,"title":".mod extension","user":{"login":"pchaigno","id":1764210,"avatar_url":"https://avatars.githubusercontent.com/u/1764210?v=3","gravatar_id":"","url":"https://api.github.com/users/pchaigno","html_url":"https://github.com/pchaigno","followers_url":"https://api.github.com/users/pchaigno/followers","following_url":"https://api.github.com/users/pchaigno/following{/other_user}","gists_url":"https://api.github.com/users/pchaigno/gists{/gist_id}","starred_url":"https://api.github.com/users/pchaigno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchaigno/subscriptions","organizations_url":"https://api.github.com/users/pchaigno/orgs","repos_url":"https://api.github.com/users/pchaigno/repos","events_url":"https://api.github.com/users/pchaigno/events{/privacy}","received_events_url":"https://api.github.com/users/pchaigno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-26T17:24:11Z","updated_at":"2015-04-19T16:28:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/github/linguist/pulls/2170","html_url":"https://github.com/github/linguist/pull/2170","diff_url":"https://github.com/github/linguist/pull/2170.diff","patch_url":"https://github.com/github/linguist/pull/2170.patch"},"body":"There is [more than 149,000 `.mod` files on GitHub](https://github.com/search?utf8=%E2%9C%93&q=extension%3Amod+NOT+djfhdirijdskqdhd) and it's used by many languages. Thus, to add that extension, we need to identify all languages using it (with at least hundreds of examples).\r\n\r\nI will update this post with the list of languages as we go. I might eventually turn this issue into a pull request to add support of the extension.\r\n\r\nLanguage | Number of files | Type\r\n----- | ----- | -----\r\nXML (DTD) | [55,200](https://github.com/search?utf8=%E2%9C%93&q=extension%3Amod+xml+OR+attlist+OR+xmlns+OR+entity&type=Code&ref=searchresults) | `data`\r\nKiCAD | [19,000](https://github.com/search?p=99&q=extension%3Amod+PCBNEW&ref=searchresults&type=Code&utf8=%E2%9C%93) | `generated`\r\nLinux Kernel Module | [16,600](https://github.com/search?o=asc&p=100&q=extension%3Amod+ko&ref=searchresults&s=indexed&type=Code&utf8=%E2%9C%93) | `data`\r\nAMPL | [6,300](https://github.com/search?p=1&q=extension%3Amod+minimize+OR+maximize&ref=searchresults&type=Code&utf8=%E2%9C%93) | `programming`\r\nGFortran | [3,900](https://github.com/search?utf8=%E2%9C%93&q=extension%3Amod++gfortran+AND+module&type=Code&ref=searchresults) | `generated`\r\nModula-2 | [2,600](https://github.com/search?utf8=%E2%9C%93&q=extension%3Amod+module+AND+begin&type=Code&ref=searchresults) | `programming`\r\n\r\nThis extension was requested for AMPL in #2073."},"comment":{"url":"https://api.github.com/repos/github/linguist/issues/comments/94294113","html_url":"https://github.com/github/linguist/pull/2170#issuecomment-94294113","issue_url":"https://api.github.com/repos/github/linguist/issues/2170","id":94294113,"user":{"login":"pchaigno","id":1764210,"avatar_url":"https://avatars.githubusercontent.com/u/1764210?v=3","gravatar_id":"","url":"https://api.github.com/users/pchaigno","html_url":"https://github.com/pchaigno","followers_url":"https://api.github.com/users/pchaigno/followers","following_url":"https://api.github.com/users/pchaigno/following{/other_user}","gists_url":"https://api.github.com/users/pchaigno/gists{/gist_id}","starred_url":"https://api.github.com/users/pchaigno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchaigno/subscriptions","organizations_url":"https://api.github.com/users/pchaigno/orgs","repos_url":"https://api.github.com/users/pchaigno/repos","events_url":"https://api.github.com/users/pchaigno/events{/privacy}","received_events_url":"https://api.github.com/users/pchaigno/received_events","type":"User","site_admin":false},"created_at":"2015-04-19T16:28:54Z","updated_at":"2015-04-19T16:28:54Z","body":"@arfon @bkeepers I just converted the issue into a pull request to add support for `.mod`.\r\n\r\nI didn't define a language for KiCAD and GFortran module files. It seemed unnecessary since they are generated and don't have syntax highlighting. Should I?\r\n\r\nI used [harogaston/Sublime-Modula-2](https://github.com/harogaston/Sublime-Modula-2) to highlight Modula-2 source code. [Here (Lightshow)](https://github-lightshow.herokuapp.com/?utf8=%E2%9C%93&scope=from-url&grammar_url=https%3A%2F%2Fraw.githubusercontent.com%2Fharogaston%2FSublime-Modula-2%2Fmaster%2FModula-2.tmLanguage&grammar_text=&code_source=from-url&code_url=https%3A%2F%2Fraw.githubusercontent.com%2Fpchaigno%2Flinguist%2Fmod-extension%2Fsamples%2FModula-2%2FHuffChan.mod&code=) is an example of how it will look like."}}