{"action":"created","issue":{"url":"https://api.github.com/repos/github/linguist/issues/1512","labels_url":"https://api.github.com/repos/github/linguist/issues/1512/labels{/name}","comments_url":"https://api.github.com/repos/github/linguist/issues/1512/comments","events_url":"https://api.github.com/repos/github/linguist/issues/1512/events","html_url":"https://github.com/github/linguist/issues/1512","id":42237763,"number":1512,"title":"TorqueScript files falsely recognized as C#","user":{"login":"Wuzzy2","id":1675853,"avatar_url":"https://avatars.githubusercontent.com/u/1675853?v=3","gravatar_id":"","url":"https://api.github.com/users/Wuzzy2","html_url":"https://github.com/Wuzzy2","followers_url":"https://api.github.com/users/Wuzzy2/followers","following_url":"https://api.github.com/users/Wuzzy2/following{/other_user}","gists_url":"https://api.github.com/users/Wuzzy2/gists{/gist_id}","starred_url":"https://api.github.com/users/Wuzzy2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wuzzy2/subscriptions","organizations_url":"https://api.github.com/users/Wuzzy2/orgs","repos_url":"https://api.github.com/users/Wuzzy2/repos","events_url":"https://api.github.com/users/Wuzzy2/events{/privacy}","received_events_url":"https://api.github.com/users/Wuzzy2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/github/linguist/labels/Misidentified%20Language","name":"Misidentified Language","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-09-08T20:09:26Z","updated_at":"2015-01-27T20:38:59Z","closed_at":null,"body":"TorqueScript is a scripting language used by Torque3D, a game engine.\r\nhttps://github.com/GarageGames/Torque3D\r\n\r\nLinguist falsely attributes TorqueScript source files as C#.\r\n\r\nHere is a project where 8.5% are falsely attributed to C#, where the source code is actually in TorqueScript:\r\nhttps://github.com/fr1tz/terminal-overload\r\n\r\nSadly, it’s syntax of TorqueScript looks similar to C# and also the preferred file suffix is “.cs” (like for C#), so it is probably not easy to distinguish both languages.\r\n\r\nTorqueScript documentation:\r\nhttp://docs.garagegames.com/tgea/official/content/documentation/Scripting%20Reference/Introduction/TorqueScript.html"},"comment":{"url":"https://api.github.com/repos/github/linguist/issues/comments/71723316","html_url":"https://github.com/github/linguist/issues/1512#issuecomment-71723316","issue_url":"https://api.github.com/repos/github/linguist/issues/1512","id":71723316,"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-01-27T20:38:59Z","updated_at":"2015-01-27T20:38:59Z","body":":+1: \r\n\r\n@eightyeight You'll have to be a little more specific when making the heuristic with `function` for Torque Script; [it's quite frequent to have this word in comments](https://github.com/search?o=asc&q=extension%3Acs+function+OR+datablock&ref=searchresults&s=indexed&type=Code&utf8=%E2%9C%93) ([the same applies to `datablock` but less often](https://github.com/search?utf8=%E2%9C%93&q=extension%3Acs+datablock&type=Code&ref=searchresults)).\r\nAlso, for the pull request you \"just\" have to extend the block for C# and Smalltalk with your heuristic rule(s) for TorqueScript (and add some tests [here](https://github.com/github/linguist/blob/master/test/test_heuristics.rb#L143-L148))."}}