{"action":"created","issue":{"url":"https://api.github.com/repos/github/linguist/issues/2073","labels_url":"https://api.github.com/repos/github/linguist/issues/2073/labels{/name}","comments_url":"https://api.github.com/repos/github/linguist/issues/2073/comments","events_url":"https://api.github.com/repos/github/linguist/issues/2073/events","html_url":"https://github.com/github/linguist/pull/2073","id":56406043,"number":2073,"title":"Add support for the AMPL modeling and script language","user":{"login":"vitaut","id":576385,"avatar_url":"https://avatars.githubusercontent.com/u/576385?v=3","gravatar_id":"","url":"https://api.github.com/users/vitaut","html_url":"https://github.com/vitaut","followers_url":"https://api.github.com/users/vitaut/followers","following_url":"https://api.github.com/users/vitaut/following{/other_user}","gists_url":"https://api.github.com/users/vitaut/gists{/gist_id}","starred_url":"https://api.github.com/users/vitaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitaut/subscriptions","organizations_url":"https://api.github.com/users/vitaut/orgs","repos_url":"https://api.github.com/users/vitaut/repos","events_url":"https://api.github.com/users/vitaut/events{/privacy}","received_events_url":"https://api.github.com/users/vitaut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-03T17:03:23Z","updated_at":"2015-02-21T00:36:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/github/linguist/pulls/2073","html_url":"https://github.com/github/linguist/pull/2073","diff_url":"https://github.com/github/linguist/pull/2073.diff","patch_url":"https://github.com/github/linguist/pull/2073.patch"},"body":"The proposed PR adds initial support for [AMPL](http://en.wikipedia.org/wiki/AMPL), a popular modeling and scripting language for mathematical optimization, including its subset called GNU MathProg. AMPL is used in a substantial number of GitHub repositories, so I think it is a useful addition. Here are a few usage examples:\r\n\r\nhttps://github.com/search?p=1&q=extension%3Amod+var&ref=searchresults&type=Code&utf8=%E2%9C%93\r\nhttps://github.com/search?utf8=%E2%9C%93&q=extension%3Amod+ampl&type=Code&ref=searchresults"},"comment":{"url":"https://api.github.com/repos/github/linguist/issues/comments/75344877","html_url":"https://github.com/github/linguist/pull/2073#issuecomment-75344877","issue_url":"https://api.github.com/repos/github/linguist/issues/2073","id":75344877,"user":{"login":"vitaut","id":576385,"avatar_url":"https://avatars.githubusercontent.com/u/576385?v=3","gravatar_id":"","url":"https://api.github.com/users/vitaut","html_url":"https://github.com/vitaut","followers_url":"https://api.github.com/users/vitaut/followers","following_url":"https://api.github.com/users/vitaut/following{/other_user}","gists_url":"https://api.github.com/users/vitaut/gists{/gist_id}","starred_url":"https://api.github.com/users/vitaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitaut/subscriptions","organizations_url":"https://api.github.com/users/vitaut/orgs","repos_url":"https://api.github.com/users/vitaut/repos","events_url":"https://api.github.com/users/vitaut/events{/privacy}","received_events_url":"https://api.github.com/users/vitaut/received_events","type":"User","site_admin":false},"created_at":"2015-02-21T00:36:03Z","updated_at":"2015-02-21T00:36:03Z","body":"Thanks, @pchaigno.\r\n\r\nHere are examples of AMPL files with different extensions on GitHub:\r\n\r\n* `.ampl`: https://github.com/search?utf8=%E2%9C%93&q=extension%3Aampl+var&type=Code&ref=searchresults\r\n\r\n* `.mod`: https://github.com/search?utf8=%E2%9C%93&q=extension%3Amod+subject&type=Code&ref=searchresults\r\n\r\n* `.dat`: https://github.com/search?utf8=%E2%9C%93&q=extension%3Adat+param&type=Code&ref=searchresults\r\n\r\n* `.run`: https://github.com/search?utf8=%E2%9C%93&q=extension%3Arun+solve&type=Code&ref=searchresults\r\n\r\nI used AMPL-specific keywords in the queries above, so the result give very few false positives. If necessary I can implement detection based on file content to avoid incorrect detection.\r\n\r\nThere is a Sublime Text package for AMPL available in the [sublime-ampl](https://github.com/JackDunnNZ/sublime-ampl) repository.\r\n"}}