{"action":"created","issue":{"url":"https://api.github.com/repos/github/linguist/issues/2063","labels_url":"https://api.github.com/repos/github/linguist/issues/2063/labels{/name}","comments_url":"https://api.github.com/repos/github/linguist/issues/2063/comments","events_url":"https://api.github.com/repos/github/linguist/issues/2063/events","html_url":"https://github.com/github/linguist/pull/2063","id":56161659,"number":2063,"title":"'Text' shouldn't qualify as a valid modeline language.","user":{"login":"larsbrinkhoff","id":775050,"avatar_url":"https://avatars.githubusercontent.com/u/775050?v=3","gravatar_id":"","url":"https://api.github.com/users/larsbrinkhoff","html_url":"https://github.com/larsbrinkhoff","followers_url":"https://api.github.com/users/larsbrinkhoff/followers","following_url":"https://api.github.com/users/larsbrinkhoff/following{/other_user}","gists_url":"https://api.github.com/users/larsbrinkhoff/gists{/gist_id}","starred_url":"https://api.github.com/users/larsbrinkhoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larsbrinkhoff/subscriptions","organizations_url":"https://api.github.com/users/larsbrinkhoff/orgs","repos_url":"https://api.github.com/users/larsbrinkhoff/repos","events_url":"https://api.github.com/users/larsbrinkhoff/events{/privacy}","received_events_url":"https://api.github.com/users/larsbrinkhoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-02-01T12:13:07Z","updated_at":"2015-02-03T17:53:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/github/linguist/pulls/2063","html_url":"https://github.com/github/linguist/pull/2063","diff_url":"https://github.com/github/linguist/pull/2063.diff","patch_url":"https://github.com/github/linguist/pull/2063.patch"},"body":"A number of `.f` files previously correctly identified as Forth, are now identified as Text. This is because they contain the Emacs modeline `-*- text -*-`.\r\n\r\nPerhaps it would be appropriate to exclude text from the modeline strategy?\r\n\r\nhttp://github.com/search?q=extension%3Af+dup+swap+text&type=Code"},"comment":{"url":"https://api.github.com/repos/github/linguist/issues/comments/72699605","html_url":"https://github.com/github/linguist/pull/2063#issuecomment-72699605","issue_url":"https://api.github.com/repos/github/linguist/issues/2063","id":72699605,"user":{"login":"larsbrinkhoff","id":775050,"avatar_url":"https://avatars.githubusercontent.com/u/775050?v=3","gravatar_id":"","url":"https://api.github.com/users/larsbrinkhoff","html_url":"https://github.com/larsbrinkhoff","followers_url":"https://api.github.com/users/larsbrinkhoff/followers","following_url":"https://api.github.com/users/larsbrinkhoff/following{/other_user}","gists_url":"https://api.github.com/users/larsbrinkhoff/gists{/gist_id}","starred_url":"https://api.github.com/users/larsbrinkhoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larsbrinkhoff/subscriptions","organizations_url":"https://api.github.com/users/larsbrinkhoff/orgs","repos_url":"https://api.github.com/users/larsbrinkhoff/repos","events_url":"https://api.github.com/users/larsbrinkhoff/events{/privacy}","received_events_url":"https://api.github.com/users/larsbrinkhoff/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T17:53:28Z","updated_at":"2015-02-03T17:53:28Z","body":"> To me, it seems like the whole point of mode lines is they are an explicit declaration by the author.\r\n\r\nI'm an avid Emacs user, and to me that seems strange.  To me, the mode line is just a hint to the editor.  Not a declaration about the file contents.  Maybe that doesn't make sense, and I'm not explaining it right.\r\n\r\nI believe the `.f` file extension are also an explicit declaration by the author, which then would contradict the mode line.\r\n\r\nTo me, it's quite obvious that those files are Forth, regardless of the mode line.  I guess I could contact the original author, Richard WM Jones, and ask him about his intentions.  But then, it's not just about these particular files.  Although there might well be few other files with the same problem.\r\n\r\n> So what would that look like?\r\n\r\nPossibly multiple strategies could each have their say about the final result."}}