{"action":"created","comment":{"url":"https://api.github.com/repos/neovim/neovim/pulls/comments/60818596","id":60818596,"diff_hunk":"@@ -4853,6 +4854,9 @@ static int nfa_regmatch(nfa_regprog_T *prog, nfa_state_T *start, regsubs_T *subm\n   fast_breakcheck();\n   if (got_int)\n     return FALSE;\n+  if (nfa_time_limit != NULL && profile_passed_limit(*nfa_time_limit)) {\n+    return FALSE;","path":"src/nvim/regexp_nfa.c","position":15,"original_position":15,"commit_id":"776151a6a1a8fa3def2bae8afe5e6096260f80b2","original_commit_id":"776151a6a1a8fa3def2bae8afe5e6096260f80b2","user":{"login":"jamessan","id":112971,"avatar_url":"https://avatars.githubusercontent.com/u/112971?v=3","gravatar_id":"","url":"https://api.github.com/users/jamessan","html_url":"https://github.com/jamessan","followers_url":"https://api.github.com/users/jamessan/followers","following_url":"https://api.github.com/users/jamessan/following{/other_user}","gists_url":"https://api.github.com/users/jamessan/gists{/gist_id}","starred_url":"https://api.github.com/users/jamessan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamessan/subscriptions","organizations_url":"https://api.github.com/users/jamessan/orgs","repos_url":"https://api.github.com/users/jamessan/repos","events_url":"https://api.github.com/users/jamessan/events{/privacy}","received_events_url":"https://api.github.com/users/jamessan/received_events","type":"User","site_admin":false},"body":"How about\r\n\r\n```c\r\ntypedef enum {\r\n  kRegexMatchTooCostly = -1,\r\n  kRegexMatchNotFound,\r\n  kRegexMatchFound\r\n} RegexMatchResult;\r\n```","created_at":"2016-04-23T00:30:18Z","updated_at":"2016-04-23T00:30:18Z","html_url":"https://github.com/neovim/neovim/pull/4630#discussion_r60818596","pull_request_url":"https://api.github.com/repos/neovim/neovim/pulls/4630","_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments/60818596"},"html":{"href":"https://github.com/neovim/neovim/pull/4630#discussion_r60818596"},"pull_request":{"href":"https://api.github.com/repos/neovim/neovim/pulls/4630"}}},"pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/4630","id":67452282,"html_url":"https://github.com/neovim/neovim/pull/4630","diff_url":"https://github.com/neovim/neovim/pull/4630.diff","patch_url":"https://github.com/neovim/neovim/pull/4630.patch","issue_url":"https://api.github.com/repos/neovim/neovim/issues/4630","number":4630,"state":"open","locked":false,"title":"[RFC] vim-patch:7.4.613","user":{"login":"jamessan","id":112971,"avatar_url":"https://avatars.githubusercontent.com/u/112971?v=3","gravatar_id":"","url":"https://api.github.com/users/jamessan","html_url":"https://github.com/jamessan","followers_url":"https://api.github.com/users/jamessan/followers","following_url":"https://api.github.com/users/jamessan/following{/other_user}","gists_url":"https://api.github.com/users/jamessan/gists{/gist_id}","starred_url":"https://api.github.com/users/jamessan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamessan/subscriptions","organizations_url":"https://api.github.com/users/jamessan/orgs","repos_url":"https://api.github.com/users/jamessan/repos","events_url":"https://api.github.com/users/jamessan/events{/privacy}","received_events_url":"https://api.github.com/users/jamessan/received_events","type":"User","site_admin":false},"body":"Problem:    The NFA engine does not implement the 'redrawtime' time limit.\r\nSolution:   Implement the time limit.\r\n\r\nhttps://github.com/vim/vim/commit/70781ee4035b5fd5e3cbb3fe4c7646e19119f0a8","created_at":"2016-04-22T02:52:42Z","updated_at":"2016-04-23T00:30:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8591435f40934383b30c4b6968e744aa1f7e7e4c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neovim/neovim/pulls/4630/commits","review_comments_url":"https://api.github.com/repos/neovim/neovim/pulls/4630/comments","review_comment_url":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/4630/comments","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/776151a6a1a8fa3def2bae8afe5e6096260f80b2","head":{"label":"jamessan:vim-7.4.613","ref":"vim-7.4.613","sha":"776151a6a1a8fa3def2bae8afe5e6096260f80b2","user":{"login":"jamessan","id":112971,"avatar_url":"https://avatars.githubusercontent.com/u/112971?v=3","gravatar_id":"","url":"https://api.github.com/users/jamessan","html_url":"https://github.com/jamessan","followers_url":"https://api.github.com/users/jamessan/followers","following_url":"https://api.github.com/users/jamessan/following{/other_user}","gists_url":"https://api.github.com/users/jamessan/gists{/gist_id}","starred_url":"https://api.github.com/users/jamessan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamessan/subscriptions","organizations_url":"https://api.github.com/users/jamessan/orgs","repos_url":"https://api.github.com/users/jamessan/repos","events_url":"https://api.github.com/users/jamessan/events{/privacy}","received_events_url":"https://api.github.com/users/jamessan/received_events","type":"User","site_admin":false},"repo":{"id":17712569,"name":"neovim","full_name":"jamessan/neovim","owner":{"login":"jamessan","id":112971,"avatar_url":"https://avatars.githubusercontent.com/u/112971?v=3","gravatar_id":"","url":"https://api.github.com/users/jamessan","html_url":"https://github.com/jamessan","followers_url":"https://api.github.com/users/jamessan/followers","following_url":"https://api.github.com/users/jamessan/following{/other_user}","gists_url":"https://api.github.com/users/jamessan/gists{/gist_id}","starred_url":"https://api.github.com/users/jamessan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamessan/subscriptions","organizations_url":"https://api.github.com/users/jamessan/orgs","repos_url":"https://api.github.com/users/jamessan/repos","events_url":"https://api.github.com/users/jamessan/events{/privacy}","received_events_url":"https://api.github.com/users/jamessan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamessan/neovim","description":"vim's rebirth for the 21st century","fork":true,"url":"https://api.github.com/repos/jamessan/neovim","forks_url":"https://api.github.com/repos/jamessan/neovim/forks","keys_url":"https://api.github.com/repos/jamessan/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamessan/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamessan/neovim/teams","hooks_url":"https://api.github.com/repos/jamessan/neovim/hooks","issue_events_url":"https://api.github.com/repos/jamessan/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/jamessan/neovim/events","assignees_url":"https://api.github.com/repos/jamessan/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/jamessan/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/jamessan/neovim/tags","blobs_url":"https://api.github.com/repos/jamessan/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamessan/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamessan/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamessan/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamessan/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/jamessan/neovim/languages","stargazers_url":"https://api.github.com/repos/jamessan/neovim/stargazers","contributors_url":"https://api.github.com/repos/jamessan/neovim/contributors","subscribers_url":"https://api.github.com/repos/jamessan/neovim/subscribers","subscription_url":"https://api.github.com/repos/jamessan/neovim/subscription","commits_url":"https://api.github.com/repos/jamessan/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamessan/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamessan/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamessan/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamessan/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/jamessan/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamessan/neovim/merges","archive_url":"https://api.github.com/repos/jamessan/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamessan/neovim/downloads","issues_url":"https://api.github.com/repos/jamessan/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/jamessan/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/jamessan/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/jamessan/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamessan/neovim/labels{/name}","releases_url":"https://api.github.com/repos/jamessan/neovim/releases{/id}","deployments_url":"https://api.github.com/repos/jamessan/neovim/deployments","created_at":"2014-03-13T14:21:51Z","updated_at":"2015-03-26T15:11:42Z","pushed_at":"2016-04-22T20:46:52Z","git_url":"git://github.com/jamessan/neovim.git","ssh_url":"git@github.com:jamessan/neovim.git","clone_url":"https://github.com/jamessan/neovim.git","svn_url":"https://github.com/jamessan/neovim","homepage":"http://neovim.org/","size":40851,"stargazers_count":0,"watchers_count":0,"language":"C","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":"neovim:master","ref":"master","sha":"cef624ee9e14bf15598219d96f65a6e4932eb935","user":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"repo":{"id":16408992,"name":"neovim","full_name":"neovim/neovim","owner":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neovim/neovim","description":"Vim-fork focused on extensibility and agility. Consider helping sustain Neovim development! ","fork":false,"url":"https://api.github.com/repos/neovim/neovim","forks_url":"https://api.github.com/repos/neovim/neovim/forks","keys_url":"https://api.github.com/repos/neovim/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neovim/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neovim/neovim/teams","hooks_url":"https://api.github.com/repos/neovim/neovim/hooks","issue_events_url":"https://api.github.com/repos/neovim/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/neovim/neovim/events","assignees_url":"https://api.github.com/repos/neovim/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/neovim/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/neovim/neovim/tags","blobs_url":"https://api.github.com/repos/neovim/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neovim/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neovim/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/neovim/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/neovim/neovim/languages","stargazers_url":"https://api.github.com/repos/neovim/neovim/stargazers","contributors_url":"https://api.github.com/repos/neovim/neovim/contributors","subscribers_url":"https://api.github.com/repos/neovim/neovim/subscribers","subscription_url":"https://api.github.com/repos/neovim/neovim/subscription","commits_url":"https://api.github.com/repos/neovim/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/neovim/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/neovim/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/neovim/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/neovim/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/neovim/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neovim/neovim/merges","archive_url":"https://api.github.com/repos/neovim/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neovim/neovim/downloads","issues_url":"https://api.github.com/repos/neovim/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/neovim/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/neovim/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/neovim/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neovim/neovim/labels{/name}","releases_url":"https://api.github.com/repos/neovim/neovim/releases{/id}","deployments_url":"https://api.github.com/repos/neovim/neovim/deployments","created_at":"2014-01-31T13:39:22Z","updated_at":"2016-04-23T00:17:24Z","pushed_at":"2016-04-22T20:08:34Z","git_url":"git://github.com/neovim/neovim.git","ssh_url":"git@github.com:neovim/neovim.git","clone_url":"https://github.com/neovim/neovim.git","svn_url":"https://github.com/neovim/neovim","homepage":"https://salt.bountysource.com/teams/neovim","size":66426,"stargazers_count":18426,"watchers_count":18426,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1293,"mirror_url":null,"open_issues_count":685,"forks":1293,"open_issues":685,"watchers":18426,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/4630"},"html":{"href":"https://github.com/neovim/neovim/pull/4630"},"issue":{"href":"https://api.github.com/repos/neovim/neovim/issues/4630"},"comments":{"href":"https://api.github.com/repos/neovim/neovim/issues/4630/comments"},"review_comments":{"href":"https://api.github.com/repos/neovim/neovim/pulls/4630/comments"},"review_comment":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neovim/neovim/pulls/4630/commits"},"statuses":{"href":"https://api.github.com/repos/neovim/neovim/statuses/776151a6a1a8fa3def2bae8afe5e6096260f80b2"}}}}