{"action":"created","comment":{"url":"https://api.github.com/repos/elixir-lang/ex_doc/pulls/comments/71989062","id":71989062,"diff_hunk":"@@ -202,14 +203,15 @@ defmodule ExDoc.Formatter.HTML.Autolink do\n   will get translated to the new href of the function.\n   \"\"\"\n   def local_doc(bin, locals) when is_binary(bin) do\n-    ~r{(?<!\\[)`\\s*((c:)?([a-z\\d_!\\\\?>\\\\|=&<!~+\\\\.\\\\+*^@-]+)/\\d+)\\s*`(?!\\])}\n+    fun_re = ~r{(([ct]:)?([a-z\\d_!\\\\?>\\\\|=&<!~+\\\\.\\\\+*^@-]+)/\\d+)} |> Regex.source\n+    ~r{(?<!\\[)`\\s*(#{fun_re})\\s*`(?!\\])}\n     |> Regex.scan(bin)\n     |> Enum.uniq()\n     |> List.flatten()\n     |> Enum.filter(&(&1 in locals))\n     |> Enum.reduce(bin, fn (x, acc) ->\n          {prefix, _, function_name, arity} = split_function(x)\n-         escaped = Regex.escape(x)\n+           escaped = Regex.escape(x)","path":"lib/ex_doc/formatter/html/autolink.ex","position":24,"original_position":24,"commit_id":"167e55e96a99a23db1a896dc5d703e3a157795af","original_commit_id":"167e55e96a99a23db1a896dc5d703e3a157795af","user":{"login":"alfert","id":1159524,"avatar_url":"https://avatars.githubusercontent.com/u/1159524?v=3","gravatar_id":"","url":"https://api.github.com/users/alfert","html_url":"https://github.com/alfert","followers_url":"https://api.github.com/users/alfert/followers","following_url":"https://api.github.com/users/alfert/following{/other_user}","gists_url":"https://api.github.com/users/alfert/gists{/gist_id}","starred_url":"https://api.github.com/users/alfert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfert/subscriptions","organizations_url":"https://api.github.com/users/alfert/orgs","repos_url":"https://api.github.com/users/alfert/repos","events_url":"https://api.github.com/users/alfert/events{/privacy}","received_events_url":"https://api.github.com/users/alfert/received_events","type":"User","site_admin":false},"body":"Oh, yes, will be fixed. ","created_at":"2016-07-24T13:59:58Z","updated_at":"2016-07-24T13:59:58Z","html_url":"https://github.com/elixir-lang/ex_doc/pull/590#discussion_r71989062","pull_request_url":"https://api.github.com/repos/elixir-lang/ex_doc/pulls/590","_links":{"self":{"href":"https://api.github.com/repos/elixir-lang/ex_doc/pulls/comments/71989062"},"html":{"href":"https://github.com/elixir-lang/ex_doc/pull/590#discussion_r71989062"},"pull_request":{"href":"https://api.github.com/repos/elixir-lang/ex_doc/pulls/590"}}},"pull_request":{"url":"https://api.github.com/repos/elixir-lang/ex_doc/pulls/590","id":78597926,"html_url":"https://github.com/elixir-lang/ex_doc/pull/590","diff_url":"https://github.com/elixir-lang/ex_doc/pull/590.diff","patch_url":"https://github.com/elixir-lang/ex_doc/pull/590.patch","issue_url":"https://api.github.com/repos/elixir-lang/ex_doc/issues/590","number":590,"state":"open","locked":false,"title":"Autolinking to types","user":{"login":"alfert","id":1159524,"avatar_url":"https://avatars.githubusercontent.com/u/1159524?v=3","gravatar_id":"","url":"https://api.github.com/users/alfert","html_url":"https://github.com/alfert","followers_url":"https://api.github.com/users/alfert/followers","following_url":"https://api.github.com/users/alfert/following{/other_user}","gists_url":"https://api.github.com/users/alfert/gists{/gist_id}","starred_url":"https://api.github.com/users/alfert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfert/subscriptions","organizations_url":"https://api.github.com/users/alfert/orgs","repos_url":"https://api.github.com/users/alfert/repos","events_url":"https://api.github.com/users/alfert/events{/privacy}","received_events_url":"https://api.github.com/users/alfert/received_events","type":"User","site_admin":false},"body":"Evaluating the `t:` prefix to a type with function syntax. The implementation took a little detour, because it took a while to realize that links to types without arity shall not work. Essentially, this make the code easier. \r\n\r\nI added also a better matching Module regex, since numbers and underscores are valid characters in module names. ","created_at":"2016-07-24T13:12:25Z","updated_at":"2016-07-24T13:59:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eaf86ac9c72d0bb150644d85ae4c77ea3ce542e2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/elixir-lang/ex_doc/pulls/590/commits","review_comments_url":"https://api.github.com/repos/elixir-lang/ex_doc/pulls/590/comments","review_comment_url":"https://api.github.com/repos/elixir-lang/ex_doc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elixir-lang/ex_doc/issues/590/comments","statuses_url":"https://api.github.com/repos/elixir-lang/ex_doc/statuses/167e55e96a99a23db1a896dc5d703e3a157795af","head":{"label":"alfert:local_types","ref":"local_types","sha":"167e55e96a99a23db1a896dc5d703e3a157795af","user":{"login":"alfert","id":1159524,"avatar_url":"https://avatars.githubusercontent.com/u/1159524?v=3","gravatar_id":"","url":"https://api.github.com/users/alfert","html_url":"https://github.com/alfert","followers_url":"https://api.github.com/users/alfert/followers","following_url":"https://api.github.com/users/alfert/following{/other_user}","gists_url":"https://api.github.com/users/alfert/gists{/gist_id}","starred_url":"https://api.github.com/users/alfert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfert/subscriptions","organizations_url":"https://api.github.com/users/alfert/orgs","repos_url":"https://api.github.com/users/alfert/repos","events_url":"https://api.github.com/users/alfert/events{/privacy}","received_events_url":"https://api.github.com/users/alfert/received_events","type":"User","site_admin":false},"repo":{"id":63963609,"name":"ex_doc","full_name":"alfert/ex_doc","owner":{"login":"alfert","id":1159524,"avatar_url":"https://avatars.githubusercontent.com/u/1159524?v=3","gravatar_id":"","url":"https://api.github.com/users/alfert","html_url":"https://github.com/alfert","followers_url":"https://api.github.com/users/alfert/followers","following_url":"https://api.github.com/users/alfert/following{/other_user}","gists_url":"https://api.github.com/users/alfert/gists{/gist_id}","starred_url":"https://api.github.com/users/alfert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfert/subscriptions","organizations_url":"https://api.github.com/users/alfert/orgs","repos_url":"https://api.github.com/users/alfert/repos","events_url":"https://api.github.com/users/alfert/events{/privacy}","received_events_url":"https://api.github.com/users/alfert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alfert/ex_doc","description":"ExDoc produces HTML and online documentation for Elixir projects","fork":true,"url":"https://api.github.com/repos/alfert/ex_doc","forks_url":"https://api.github.com/repos/alfert/ex_doc/forks","keys_url":"https://api.github.com/repos/alfert/ex_doc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alfert/ex_doc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alfert/ex_doc/teams","hooks_url":"https://api.github.com/repos/alfert/ex_doc/hooks","issue_events_url":"https://api.github.com/repos/alfert/ex_doc/issues/events{/number}","events_url":"https://api.github.com/repos/alfert/ex_doc/events","assignees_url":"https://api.github.com/repos/alfert/ex_doc/assignees{/user}","branches_url":"https://api.github.com/repos/alfert/ex_doc/branches{/branch}","tags_url":"https://api.github.com/repos/alfert/ex_doc/tags","blobs_url":"https://api.github.com/repos/alfert/ex_doc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alfert/ex_doc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alfert/ex_doc/git/refs{/sha}","trees_url":"https://api.github.com/repos/alfert/ex_doc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alfert/ex_doc/statuses/{sha}","languages_url":"https://api.github.com/repos/alfert/ex_doc/languages","stargazers_url":"https://api.github.com/repos/alfert/ex_doc/stargazers","contributors_url":"https://api.github.com/repos/alfert/ex_doc/contributors","subscribers_url":"https://api.github.com/repos/alfert/ex_doc/subscribers","subscription_url":"https://api.github.com/repos/alfert/ex_doc/subscription","commits_url":"https://api.github.com/repos/alfert/ex_doc/commits{/sha}","git_commits_url":"https://api.github.com/repos/alfert/ex_doc/git/commits{/sha}","comments_url":"https://api.github.com/repos/alfert/ex_doc/comments{/number}","issue_comment_url":"https://api.github.com/repos/alfert/ex_doc/issues/comments{/number}","contents_url":"https://api.github.com/repos/alfert/ex_doc/contents/{+path}","compare_url":"https://api.github.com/repos/alfert/ex_doc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alfert/ex_doc/merges","archive_url":"https://api.github.com/repos/alfert/ex_doc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alfert/ex_doc/downloads","issues_url":"https://api.github.com/repos/alfert/ex_doc/issues{/number}","pulls_url":"https://api.github.com/repos/alfert/ex_doc/pulls{/number}","milestones_url":"https://api.github.com/repos/alfert/ex_doc/milestones{/number}","notifications_url":"https://api.github.com/repos/alfert/ex_doc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alfert/ex_doc/labels{/name}","releases_url":"https://api.github.com/repos/alfert/ex_doc/releases{/id}","deployments_url":"https://api.github.com/repos/alfert/ex_doc/deployments","created_at":"2016-07-22T15:24:47Z","updated_at":"2016-07-22T15:24:49Z","pushed_at":"2016-07-24T13:12:02Z","git_url":"git://github.com/alfert/ex_doc.git","ssh_url":"git@github.com:alfert/ex_doc.git","clone_url":"https://github.com/alfert/ex_doc.git","svn_url":"https://github.com/alfert/ex_doc","homepage":"http://elixir-lang.org","size":2956,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"elixir-lang:master","ref":"master","sha":"bee5ec356c4a28291390dffec3000fb862075b96","user":{"login":"elixir-lang","id":1481354,"avatar_url":"https://avatars.githubusercontent.com/u/1481354?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-lang","html_url":"https://github.com/elixir-lang","followers_url":"https://api.github.com/users/elixir-lang/followers","following_url":"https://api.github.com/users/elixir-lang/following{/other_user}","gists_url":"https://api.github.com/users/elixir-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-lang/subscriptions","organizations_url":"https://api.github.com/users/elixir-lang/orgs","repos_url":"https://api.github.com/users/elixir-lang/repos","events_url":"https://api.github.com/users/elixir-lang/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":3642931,"name":"ex_doc","full_name":"elixir-lang/ex_doc","owner":{"login":"elixir-lang","id":1481354,"avatar_url":"https://avatars.githubusercontent.com/u/1481354?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-lang","html_url":"https://github.com/elixir-lang","followers_url":"https://api.github.com/users/elixir-lang/followers","following_url":"https://api.github.com/users/elixir-lang/following{/other_user}","gists_url":"https://api.github.com/users/elixir-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-lang/subscriptions","organizations_url":"https://api.github.com/users/elixir-lang/orgs","repos_url":"https://api.github.com/users/elixir-lang/repos","events_url":"https://api.github.com/users/elixir-lang/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elixir-lang/ex_doc","description":"ExDoc produces HTML and online documentation for Elixir projects","fork":false,"url":"https://api.github.com/repos/elixir-lang/ex_doc","forks_url":"https://api.github.com/repos/elixir-lang/ex_doc/forks","keys_url":"https://api.github.com/repos/elixir-lang/ex_doc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elixir-lang/ex_doc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elixir-lang/ex_doc/teams","hooks_url":"https://api.github.com/repos/elixir-lang/ex_doc/hooks","issue_events_url":"https://api.github.com/repos/elixir-lang/ex_doc/issues/events{/number}","events_url":"https://api.github.com/repos/elixir-lang/ex_doc/events","assignees_url":"https://api.github.com/repos/elixir-lang/ex_doc/assignees{/user}","branches_url":"https://api.github.com/repos/elixir-lang/ex_doc/branches{/branch}","tags_url":"https://api.github.com/repos/elixir-lang/ex_doc/tags","blobs_url":"https://api.github.com/repos/elixir-lang/ex_doc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elixir-lang/ex_doc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elixir-lang/ex_doc/git/refs{/sha}","trees_url":"https://api.github.com/repos/elixir-lang/ex_doc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elixir-lang/ex_doc/statuses/{sha}","languages_url":"https://api.github.com/repos/elixir-lang/ex_doc/languages","stargazers_url":"https://api.github.com/repos/elixir-lang/ex_doc/stargazers","contributors_url":"https://api.github.com/repos/elixir-lang/ex_doc/contributors","subscribers_url":"https://api.github.com/repos/elixir-lang/ex_doc/subscribers","subscription_url":"https://api.github.com/repos/elixir-lang/ex_doc/subscription","commits_url":"https://api.github.com/repos/elixir-lang/ex_doc/commits{/sha}","git_commits_url":"https://api.github.com/repos/elixir-lang/ex_doc/git/commits{/sha}","comments_url":"https://api.github.com/repos/elixir-lang/ex_doc/comments{/number}","issue_comment_url":"https://api.github.com/repos/elixir-lang/ex_doc/issues/comments{/number}","contents_url":"https://api.github.com/repos/elixir-lang/ex_doc/contents/{+path}","compare_url":"https://api.github.com/repos/elixir-lang/ex_doc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elixir-lang/ex_doc/merges","archive_url":"https://api.github.com/repos/elixir-lang/ex_doc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elixir-lang/ex_doc/downloads","issues_url":"https://api.github.com/repos/elixir-lang/ex_doc/issues{/number}","pulls_url":"https://api.github.com/repos/elixir-lang/ex_doc/pulls{/number}","milestones_url":"https://api.github.com/repos/elixir-lang/ex_doc/milestones{/number}","notifications_url":"https://api.github.com/repos/elixir-lang/ex_doc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elixir-lang/ex_doc/labels{/name}","releases_url":"https://api.github.com/repos/elixir-lang/ex_doc/releases{/id}","deployments_url":"https://api.github.com/repos/elixir-lang/ex_doc/deployments","created_at":"2012-03-06T21:35:38Z","updated_at":"2016-07-23T04:33:29Z","pushed_at":"2016-07-24T13:12:25Z","git_url":"git://github.com/elixir-lang/ex_doc.git","ssh_url":"git@github.com:elixir-lang/ex_doc.git","clone_url":"https://github.com/elixir-lang/ex_doc.git","svn_url":"https://github.com/elixir-lang/ex_doc","homepage":"http://elixir-lang.org","size":4456,"stargazers_count":254,"watchers_count":254,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":79,"mirror_url":null,"open_issues_count":33,"forks":79,"open_issues":33,"watchers":254,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elixir-lang/ex_doc/pulls/590"},"html":{"href":"https://github.com/elixir-lang/ex_doc/pull/590"},"issue":{"href":"https://api.github.com/repos/elixir-lang/ex_doc/issues/590"},"comments":{"href":"https://api.github.com/repos/elixir-lang/ex_doc/issues/590/comments"},"review_comments":{"href":"https://api.github.com/repos/elixir-lang/ex_doc/pulls/590/comments"},"review_comment":{"href":"https://api.github.com/repos/elixir-lang/ex_doc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elixir-lang/ex_doc/pulls/590/commits"},"statuses":{"href":"https://api.github.com/repos/elixir-lang/ex_doc/statuses/167e55e96a99a23db1a896dc5d703e3a157795af"}}}}
{"actor":{"display_login":"alfert"}}