{"action":"created","comment":{"url":"https://api.github.com/repos/l20n/l20n.js/pulls/comments/34022180","id":34022180,"diff_hunk":"@@ -5,201 +5,126 @@ import { L10nError } from '../../errors';\n const MAX_PLACEABLES = 100;\n \n export default {\n-  _patterns: null,\n-\n-  init: function() {\n-    this._patterns = {\n-      index: /@cldr\\.plural\\(\\$?(\\w+)\\)/g,\n-      placeables: /\\{\\{\\s*\\$?([^\\s]*?)\\s*\\}\\}/,\n-      unesc: /\\\\({{|u[0-9a-fA-F]{4}|.)/g,\n-    };\n-  },\n-\n-  parse: function (emit, string, simple) {\n-    if (!this._patterns) {\n-      this.init();\n-    }\n+  parse: function(env, string) {\n     this._source = string;\n     this._index = 0;\n-    this._length = this._source.length;\n-    this.simpleMode = simple;\n-    this.emit = emit;","path":"src/lib/format/l20n/parser.js","position":23,"original_position":23,"commit_id":"b63a3e25db08c64de6769b9c046e7fd5ef35221b","original_commit_id":"b63a3e25db08c64de6769b9c046e7fd5ef35221b","user":{"login":"stasm","id":265818,"avatar_url":"https://avatars.githubusercontent.com/u/265818?v=3","gravatar_id":"","url":"https://api.github.com/users/stasm","html_url":"https://github.com/stasm","followers_url":"https://api.github.com/users/stasm/followers","following_url":"https://api.github.com/users/stasm/following{/other_user}","gists_url":"https://api.github.com/users/stasm/gists{/gist_id}","starred_url":"https://api.github.com/users/stasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stasm/subscriptions","organizations_url":"https://api.github.com/users/stasm/orgs","repos_url":"https://api.github.com/users/stasm/repos","events_url":"https://api.github.com/users/stasm/events{/privacy}","received_events_url":"https://api.github.com/users/stasm/received_events","type":"User","site_admin":false},"body":"Why are you removing `emit`?","created_at":"2015-07-07T09:26:56Z","updated_at":"2015-07-07T09:26:56Z","html_url":"https://github.com/l20n/l20n.js/pull/49#discussion_r34022180","pull_request_url":"https://api.github.com/repos/l20n/l20n.js/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/l20n/l20n.js/pulls/comments/34022180"},"html":{"href":"https://github.com/l20n/l20n.js/pull/49#discussion_r34022180"},"pull_request":{"href":"https://api.github.com/repos/l20n/l20n.js/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/l20n/l20n.js/pulls/49","id":39347860,"html_url":"https://github.com/l20n/l20n.js/pull/49","diff_url":"https://github.com/l20n/l20n.js/pull/49.diff","patch_url":"https://github.com/l20n/l20n.js/pull/49.patch","issue_url":"https://api.github.com/repos/l20n/l20n.js/issues/49","number":49,"state":"open","locked":false,"title":"V3 runtime parser","user":{"login":"zbraniecki","id":449986,"avatar_url":"https://avatars.githubusercontent.com/u/449986?v=3","gravatar_id":"","url":"https://api.github.com/users/zbraniecki","html_url":"https://github.com/zbraniecki","followers_url":"https://api.github.com/users/zbraniecki/followers","following_url":"https://api.github.com/users/zbraniecki/following{/other_user}","gists_url":"https://api.github.com/users/zbraniecki/gists{/gist_id}","starred_url":"https://api.github.com/users/zbraniecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbraniecki/subscriptions","organizations_url":"https://api.github.com/users/zbraniecki/orgs","repos_url":"https://api.github.com/users/zbraniecki/repos","events_url":"https://api.github.com/users/zbraniecki/events{/privacy}","received_events_url":"https://api.github.com/users/zbraniecki/received_events","type":"User","site_admin":false},"body":"I still have some tweaks to do here and there, but it passes tests and lint. @stasm - r?","created_at":"2015-07-07T08:54:55Z","updated_at":"2015-07-07T09:26:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57ab4a3d7683d69186ff8fee28d6c88f355acbbe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/l20n/l20n.js/pulls/49/commits","review_comments_url":"https://api.github.com/repos/l20n/l20n.js/pulls/49/comments","review_comment_url":"https://api.github.com/repos/l20n/l20n.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/l20n/l20n.js/issues/49/comments","statuses_url":"https://api.github.com/repos/l20n/l20n.js/statuses/b63a3e25db08c64de6769b9c046e7fd5ef35221b","head":{"label":"zbraniecki:v3-runtime-parser","ref":"v3-runtime-parser","sha":"b63a3e25db08c64de6769b9c046e7fd5ef35221b","user":{"login":"zbraniecki","id":449986,"avatar_url":"https://avatars.githubusercontent.com/u/449986?v=3","gravatar_id":"","url":"https://api.github.com/users/zbraniecki","html_url":"https://github.com/zbraniecki","followers_url":"https://api.github.com/users/zbraniecki/followers","following_url":"https://api.github.com/users/zbraniecki/following{/other_user}","gists_url":"https://api.github.com/users/zbraniecki/gists{/gist_id}","starred_url":"https://api.github.com/users/zbraniecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbraniecki/subscriptions","organizations_url":"https://api.github.com/users/zbraniecki/orgs","repos_url":"https://api.github.com/users/zbraniecki/repos","events_url":"https://api.github.com/users/zbraniecki/events{/privacy}","received_events_url":"https://api.github.com/users/zbraniecki/received_events","type":"User","site_admin":false},"repo":{"id":5379922,"name":"l20n.js","full_name":"zbraniecki/l20n.js","owner":{"login":"zbraniecki","id":449986,"avatar_url":"https://avatars.githubusercontent.com/u/449986?v=3","gravatar_id":"","url":"https://api.github.com/users/zbraniecki","html_url":"https://github.com/zbraniecki","followers_url":"https://api.github.com/users/zbraniecki/followers","following_url":"https://api.github.com/users/zbraniecki/following{/other_user}","gists_url":"https://api.github.com/users/zbraniecki/gists{/gist_id}","starred_url":"https://api.github.com/users/zbraniecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbraniecki/subscriptions","organizations_url":"https://api.github.com/users/zbraniecki/orgs","repos_url":"https://api.github.com/users/zbraniecki/repos","events_url":"https://api.github.com/users/zbraniecki/events{/privacy}","received_events_url":"https://api.github.com/users/zbraniecki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zbraniecki/l20n.js","description":"L20n implementation in JavaScript","fork":true,"url":"https://api.github.com/repos/zbraniecki/l20n.js","forks_url":"https://api.github.com/repos/zbraniecki/l20n.js/forks","keys_url":"https://api.github.com/repos/zbraniecki/l20n.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zbraniecki/l20n.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zbraniecki/l20n.js/teams","hooks_url":"https://api.github.com/repos/zbraniecki/l20n.js/hooks","issue_events_url":"https://api.github.com/repos/zbraniecki/l20n.js/issues/events{/number}","events_url":"https://api.github.com/repos/zbraniecki/l20n.js/events","assignees_url":"https://api.github.com/repos/zbraniecki/l20n.js/assignees{/user}","branches_url":"https://api.github.com/repos/zbraniecki/l20n.js/branches{/branch}","tags_url":"https://api.github.com/repos/zbraniecki/l20n.js/tags","blobs_url":"https://api.github.com/repos/zbraniecki/l20n.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zbraniecki/l20n.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zbraniecki/l20n.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/zbraniecki/l20n.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zbraniecki/l20n.js/statuses/{sha}","languages_url":"https://api.github.com/repos/zbraniecki/l20n.js/languages","stargazers_url":"https://api.github.com/repos/zbraniecki/l20n.js/stargazers","contributors_url":"https://api.github.com/repos/zbraniecki/l20n.js/contributors","subscribers_url":"https://api.github.com/repos/zbraniecki/l20n.js/subscribers","subscription_url":"https://api.github.com/repos/zbraniecki/l20n.js/subscription","commits_url":"https://api.github.com/repos/zbraniecki/l20n.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/zbraniecki/l20n.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/zbraniecki/l20n.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/zbraniecki/l20n.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/zbraniecki/l20n.js/contents/{+path}","compare_url":"https://api.github.com/repos/zbraniecki/l20n.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zbraniecki/l20n.js/merges","archive_url":"https://api.github.com/repos/zbraniecki/l20n.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zbraniecki/l20n.js/downloads","issues_url":"https://api.github.com/repos/zbraniecki/l20n.js/issues{/number}","pulls_url":"https://api.github.com/repos/zbraniecki/l20n.js/pulls{/number}","milestones_url":"https://api.github.com/repos/zbraniecki/l20n.js/milestones{/number}","notifications_url":"https://api.github.com/repos/zbraniecki/l20n.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zbraniecki/l20n.js/labels{/name}","releases_url":"https://api.github.com/repos/zbraniecki/l20n.js/releases{/id}","created_at":"2012-08-11T13:20:14Z","updated_at":"2015-01-24T09:38:40Z","pushed_at":"2015-07-07T08:53:49Z","git_url":"git://github.com/zbraniecki/l20n.js.git","ssh_url":"git@github.com:zbraniecki/l20n.js.git","clone_url":"https://github.com/zbraniecki/l20n.js.git","svn_url":"https://github.com/zbraniecki/l20n.js","homepage":null,"size":4679,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"l20n:v3.x","ref":"v3.x","sha":"c1a3c420052e757beb397a65fb99fd6b868fc9ac","user":{"login":"l20n","id":2127587,"avatar_url":"https://avatars.githubusercontent.com/u/2127587?v=3","gravatar_id":"","url":"https://api.github.com/users/l20n","html_url":"https://github.com/l20n","followers_url":"https://api.github.com/users/l20n/followers","following_url":"https://api.github.com/users/l20n/following{/other_user}","gists_url":"https://api.github.com/users/l20n/gists{/gist_id}","starred_url":"https://api.github.com/users/l20n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l20n/subscriptions","organizations_url":"https://api.github.com/users/l20n/orgs","repos_url":"https://api.github.com/users/l20n/repos","events_url":"https://api.github.com/users/l20n/events{/privacy}","received_events_url":"https://api.github.com/users/l20n/received_events","type":"Organization","site_admin":false},"repo":{"id":5366673,"name":"l20n.js","full_name":"l20n/l20n.js","owner":{"login":"l20n","id":2127587,"avatar_url":"https://avatars.githubusercontent.com/u/2127587?v=3","gravatar_id":"","url":"https://api.github.com/users/l20n","html_url":"https://github.com/l20n","followers_url":"https://api.github.com/users/l20n/followers","following_url":"https://api.github.com/users/l20n/following{/other_user}","gists_url":"https://api.github.com/users/l20n/gists{/gist_id}","starred_url":"https://api.github.com/users/l20n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l20n/subscriptions","organizations_url":"https://api.github.com/users/l20n/orgs","repos_url":"https://api.github.com/users/l20n/repos","events_url":"https://api.github.com/users/l20n/events{/privacy}","received_events_url":"https://api.github.com/users/l20n/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/l20n/l20n.js","description":"L20n reinvents software localization. Users should be able to benefit from the entire expressive power of natural languages. L20n keeps simple things simple, and at the same time makes complex things possible.  This is the JavaScript implementation of L20n.","fork":false,"url":"https://api.github.com/repos/l20n/l20n.js","forks_url":"https://api.github.com/repos/l20n/l20n.js/forks","keys_url":"https://api.github.com/repos/l20n/l20n.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/l20n/l20n.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/l20n/l20n.js/teams","hooks_url":"https://api.github.com/repos/l20n/l20n.js/hooks","issue_events_url":"https://api.github.com/repos/l20n/l20n.js/issues/events{/number}","events_url":"https://api.github.com/repos/l20n/l20n.js/events","assignees_url":"https://api.github.com/repos/l20n/l20n.js/assignees{/user}","branches_url":"https://api.github.com/repos/l20n/l20n.js/branches{/branch}","tags_url":"https://api.github.com/repos/l20n/l20n.js/tags","blobs_url":"https://api.github.com/repos/l20n/l20n.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/l20n/l20n.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/l20n/l20n.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/l20n/l20n.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/l20n/l20n.js/statuses/{sha}","languages_url":"https://api.github.com/repos/l20n/l20n.js/languages","stargazers_url":"https://api.github.com/repos/l20n/l20n.js/stargazers","contributors_url":"https://api.github.com/repos/l20n/l20n.js/contributors","subscribers_url":"https://api.github.com/repos/l20n/l20n.js/subscribers","subscription_url":"https://api.github.com/repos/l20n/l20n.js/subscription","commits_url":"https://api.github.com/repos/l20n/l20n.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/l20n/l20n.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/l20n/l20n.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/l20n/l20n.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/l20n/l20n.js/contents/{+path}","compare_url":"https://api.github.com/repos/l20n/l20n.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/l20n/l20n.js/merges","archive_url":"https://api.github.com/repos/l20n/l20n.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/l20n/l20n.js/downloads","issues_url":"https://api.github.com/repos/l20n/l20n.js/issues{/number}","pulls_url":"https://api.github.com/repos/l20n/l20n.js/pulls{/number}","milestones_url":"https://api.github.com/repos/l20n/l20n.js/milestones{/number}","notifications_url":"https://api.github.com/repos/l20n/l20n.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/l20n/l20n.js/labels{/name}","releases_url":"https://api.github.com/repos/l20n/l20n.js/releases{/id}","created_at":"2012-08-10T08:17:42Z","updated_at":"2015-07-03T14:07:27Z","pushed_at":"2015-07-07T08:54:55Z","git_url":"git://github.com/l20n/l20n.js.git","ssh_url":"git@github.com:l20n/l20n.js.git","clone_url":"https://github.com/l20n/l20n.js.git","svn_url":"https://github.com/l20n/l20n.js","homepage":"http://l20n.org","size":4665,"stargazers_count":672,"watchers_count":672,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":8,"forks":35,"open_issues":8,"watchers":672,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/l20n/l20n.js/pulls/49"},"html":{"href":"https://github.com/l20n/l20n.js/pull/49"},"issue":{"href":"https://api.github.com/repos/l20n/l20n.js/issues/49"},"comments":{"href":"https://api.github.com/repos/l20n/l20n.js/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/l20n/l20n.js/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/l20n/l20n.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/l20n/l20n.js/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/l20n/l20n.js/statuses/b63a3e25db08c64de6769b9c046e7fd5ef35221b"}}}}