{"action":"created","comment":{"url":"https://api.github.com/repos/akkadotnet/akka.net/pulls/comments/34945830","id":34945830,"diff_hunk":"@@ -19,6 +20,17 @@ public class Tokenizer\n     {\n         private readonly string _text;\n         private int _index;\n+        private readonly Stack<int> _indexStack = new Stack<int>();\n+\n+        public void Push()\n+        {\n+            _indexStack.Push(_index);\n+        }\n+\n+        public void Pop()\n+        {\n+            _index = _indexStack.Pop();\n+        }","path":"src/core/Akka/Configuration/Hocon/HoconTokenizer.cs","position":22,"original_position":22,"commit_id":"c0605b92ef24030b714e458a494a7f043b78437d","original_commit_id":"c0605b92ef24030b714e458a494a7f043b78437d","user":{"login":"rogeralsing","id":647031,"avatar_url":"https://avatars.githubusercontent.com/u/647031?v=3","gravatar_id":"","url":"https://api.github.com/users/rogeralsing","html_url":"https://github.com/rogeralsing","followers_url":"https://api.github.com/users/rogeralsing/followers","following_url":"https://api.github.com/users/rogeralsing/following{/other_user}","gists_url":"https://api.github.com/users/rogeralsing/gists{/gist_id}","starred_url":"https://api.github.com/users/rogeralsing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogeralsing/subscriptions","organizations_url":"https://api.github.com/users/rogeralsing/orgs","repos_url":"https://api.github.com/users/rogeralsing/repos","events_url":"https://api.github.com/users/rogeralsing/events{/privacy}","received_events_url":"https://api.github.com/users/rogeralsing/received_events","type":"User","site_admin":false},"body":"Improved the Hocon parser to let the tokenizer to use transactions.\r\nwe can Push the current parser position and then consume some tokens, and then rollback if the consumed text didnt match what we were looking for.\r\n\r\n( The Include support is ambigious with normal unquoted hocon keys. and thus we need to \"look ahead\" to verify if this is actually an include or not)","created_at":"2015-07-18T08:38:04Z","updated_at":"2015-07-18T08:38:04Z","html_url":"https://github.com/akkadotnet/akka.net/pull/1169#discussion_r34945830","pull_request_url":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1169","_links":{"self":{"href":"https://api.github.com/repos/akkadotnet/akka.net/pulls/comments/34945830"},"html":{"href":"https://github.com/akkadotnet/akka.net/pull/1169#discussion_r34945830"},"pull_request":{"href":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1169"}}},"pull_request":{"url":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1169","id":40289018,"html_url":"https://github.com/akkadotnet/akka.net/pull/1169","diff_url":"https://github.com/akkadotnet/akka.net/pull/1169.diff","patch_url":"https://github.com/akkadotnet/akka.net/pull/1169.patch","issue_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/1169","number":1169,"state":"open","locked":false,"title":"Hocon ","user":{"login":"rogeralsing","id":647031,"avatar_url":"https://avatars.githubusercontent.com/u/647031?v=3","gravatar_id":"","url":"https://api.github.com/users/rogeralsing","html_url":"https://github.com/rogeralsing","followers_url":"https://api.github.com/users/rogeralsing/followers","following_url":"https://api.github.com/users/rogeralsing/following{/other_user}","gists_url":"https://api.github.com/users/rogeralsing/gists{/gist_id}","starred_url":"https://api.github.com/users/rogeralsing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogeralsing/subscriptions","organizations_url":"https://api.github.com/users/rogeralsing/orgs","repos_url":"https://api.github.com/users/rogeralsing/repos","events_url":"https://api.github.com/users/rogeralsing/events{/privacy}","received_events_url":"https://api.github.com/users/rogeralsing/received_events","type":"User","site_admin":false},"body":"Related to #1164 \r\n\r\n* Added Hocon Include support\r\n* Added Hocon include resolver support\r\n* Added Hocon Include substitution support\r\n* Added more Hocon tests\r\n* Added HoconObject.Merge support\r\n* Added Config from Object support (.NET object to Hocon Config)\r\n\r\nThis allows us to use Hocon includes:\r\n\r\n```javascript\r\na {\r\n   include 'some resource'\r\n}\r\n```\r\n\r\nThe 'some resource' can then be resolved by an optional resolver callback. so the resource could be a file on disk, an url, or whatever you want that could result in a new hocon sub config.\r\n\r\n","created_at":"2015-07-18T08:26:17Z","updated_at":"2015-07-18T08:38:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c75d10a71939f8d390d6e5166063aceeca0fc76b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1169/commits","review_comments_url":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1169/comments","review_comment_url":"https://api.github.com/repos/akkadotnet/akka.net/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/1169/comments","statuses_url":"https://api.github.com/repos/akkadotnet/akka.net/statuses/c0605b92ef24030b714e458a494a7f043b78437d","head":{"label":"rogeralsing:hocon-updates","ref":"hocon-updates","sha":"c0605b92ef24030b714e458a494a7f043b78437d","user":{"login":"rogeralsing","id":647031,"avatar_url":"https://avatars.githubusercontent.com/u/647031?v=3","gravatar_id":"","url":"https://api.github.com/users/rogeralsing","html_url":"https://github.com/rogeralsing","followers_url":"https://api.github.com/users/rogeralsing/followers","following_url":"https://api.github.com/users/rogeralsing/following{/other_user}","gists_url":"https://api.github.com/users/rogeralsing/gists{/gist_id}","starred_url":"https://api.github.com/users/rogeralsing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogeralsing/subscriptions","organizations_url":"https://api.github.com/users/rogeralsing/orgs","repos_url":"https://api.github.com/users/rogeralsing/repos","events_url":"https://api.github.com/users/rogeralsing/events{/privacy}","received_events_url":"https://api.github.com/users/rogeralsing/received_events","type":"User","site_admin":false},"repo":{"id":18191698,"name":"akka.net","full_name":"rogeralsing/akka.net","owner":{"login":"rogeralsing","id":647031,"avatar_url":"https://avatars.githubusercontent.com/u/647031?v=3","gravatar_id":"","url":"https://api.github.com/users/rogeralsing","html_url":"https://github.com/rogeralsing","followers_url":"https://api.github.com/users/rogeralsing/followers","following_url":"https://api.github.com/users/rogeralsing/following{/other_user}","gists_url":"https://api.github.com/users/rogeralsing/gists{/gist_id}","starred_url":"https://api.github.com/users/rogeralsing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogeralsing/subscriptions","organizations_url":"https://api.github.com/users/rogeralsing/orgs","repos_url":"https://api.github.com/users/rogeralsing/repos","events_url":"https://api.github.com/users/rogeralsing/events{/privacy}","received_events_url":"https://api.github.com/users/rogeralsing/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rogeralsing/akka.net","description":"Port of Akka actors for .NET","fork":true,"url":"https://api.github.com/repos/rogeralsing/akka.net","forks_url":"https://api.github.com/repos/rogeralsing/akka.net/forks","keys_url":"https://api.github.com/repos/rogeralsing/akka.net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rogeralsing/akka.net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rogeralsing/akka.net/teams","hooks_url":"https://api.github.com/repos/rogeralsing/akka.net/hooks","issue_events_url":"https://api.github.com/repos/rogeralsing/akka.net/issues/events{/number}","events_url":"https://api.github.com/repos/rogeralsing/akka.net/events","assignees_url":"https://api.github.com/repos/rogeralsing/akka.net/assignees{/user}","branches_url":"https://api.github.com/repos/rogeralsing/akka.net/branches{/branch}","tags_url":"https://api.github.com/repos/rogeralsing/akka.net/tags","blobs_url":"https://api.github.com/repos/rogeralsing/akka.net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rogeralsing/akka.net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rogeralsing/akka.net/git/refs{/sha}","trees_url":"https://api.github.com/repos/rogeralsing/akka.net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rogeralsing/akka.net/statuses/{sha}","languages_url":"https://api.github.com/repos/rogeralsing/akka.net/languages","stargazers_url":"https://api.github.com/repos/rogeralsing/akka.net/stargazers","contributors_url":"https://api.github.com/repos/rogeralsing/akka.net/contributors","subscribers_url":"https://api.github.com/repos/rogeralsing/akka.net/subscribers","subscription_url":"https://api.github.com/repos/rogeralsing/akka.net/subscription","commits_url":"https://api.github.com/repos/rogeralsing/akka.net/commits{/sha}","git_commits_url":"https://api.github.com/repos/rogeralsing/akka.net/git/commits{/sha}","comments_url":"https://api.github.com/repos/rogeralsing/akka.net/comments{/number}","issue_comment_url":"https://api.github.com/repos/rogeralsing/akka.net/issues/comments{/number}","contents_url":"https://api.github.com/repos/rogeralsing/akka.net/contents/{+path}","compare_url":"https://api.github.com/repos/rogeralsing/akka.net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rogeralsing/akka.net/merges","archive_url":"https://api.github.com/repos/rogeralsing/akka.net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rogeralsing/akka.net/downloads","issues_url":"https://api.github.com/repos/rogeralsing/akka.net/issues{/number}","pulls_url":"https://api.github.com/repos/rogeralsing/akka.net/pulls{/number}","milestones_url":"https://api.github.com/repos/rogeralsing/akka.net/milestones{/number}","notifications_url":"https://api.github.com/repos/rogeralsing/akka.net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rogeralsing/akka.net/labels{/name}","releases_url":"https://api.github.com/repos/rogeralsing/akka.net/releases{/id}","created_at":"2014-03-27T21:15:39Z","updated_at":"2015-07-15T08:37:56Z","pushed_at":"2015-07-18T08:21:34Z","git_url":"git://github.com/rogeralsing/akka.net.git","ssh_url":"git@github.com:rogeralsing/akka.net.git","clone_url":"https://github.com/rogeralsing/akka.net.git","svn_url":"https://github.com/rogeralsing/akka.net","homepage":"","size":44708,"stargazers_count":29,"watchers_count":29,"language":"C#","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":29,"default_branch":"master"}},"base":{"label":"akkadotnet:dev","ref":"dev","sha":"8df18e96ee993a55f5d2916c37822845330e8f78","user":{"login":"akkadotnet","id":7003835,"avatar_url":"https://avatars.githubusercontent.com/u/7003835?v=3","gravatar_id":"","url":"https://api.github.com/users/akkadotnet","html_url":"https://github.com/akkadotnet","followers_url":"https://api.github.com/users/akkadotnet/followers","following_url":"https://api.github.com/users/akkadotnet/following{/other_user}","gists_url":"https://api.github.com/users/akkadotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/akkadotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akkadotnet/subscriptions","organizations_url":"https://api.github.com/users/akkadotnet/orgs","repos_url":"https://api.github.com/users/akkadotnet/repos","events_url":"https://api.github.com/users/akkadotnet/events{/privacy}","received_events_url":"https://api.github.com/users/akkadotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":15509440,"name":"akka.net","full_name":"akkadotnet/akka.net","owner":{"login":"akkadotnet","id":7003835,"avatar_url":"https://avatars.githubusercontent.com/u/7003835?v=3","gravatar_id":"","url":"https://api.github.com/users/akkadotnet","html_url":"https://github.com/akkadotnet","followers_url":"https://api.github.com/users/akkadotnet/followers","following_url":"https://api.github.com/users/akkadotnet/following{/other_user}","gists_url":"https://api.github.com/users/akkadotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/akkadotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akkadotnet/subscriptions","organizations_url":"https://api.github.com/users/akkadotnet/orgs","repos_url":"https://api.github.com/users/akkadotnet/repos","events_url":"https://api.github.com/users/akkadotnet/events{/privacy}","received_events_url":"https://api.github.com/users/akkadotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akkadotnet/akka.net","description":"Port of Akka actors for .NET","fork":false,"url":"https://api.github.com/repos/akkadotnet/akka.net","forks_url":"https://api.github.com/repos/akkadotnet/akka.net/forks","keys_url":"https://api.github.com/repos/akkadotnet/akka.net/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akkadotnet/akka.net/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akkadotnet/akka.net/teams","hooks_url":"https://api.github.com/repos/akkadotnet/akka.net/hooks","issue_events_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/events{/number}","events_url":"https://api.github.com/repos/akkadotnet/akka.net/events","assignees_url":"https://api.github.com/repos/akkadotnet/akka.net/assignees{/user}","branches_url":"https://api.github.com/repos/akkadotnet/akka.net/branches{/branch}","tags_url":"https://api.github.com/repos/akkadotnet/akka.net/tags","blobs_url":"https://api.github.com/repos/akkadotnet/akka.net/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akkadotnet/akka.net/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akkadotnet/akka.net/git/refs{/sha}","trees_url":"https://api.github.com/repos/akkadotnet/akka.net/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akkadotnet/akka.net/statuses/{sha}","languages_url":"https://api.github.com/repos/akkadotnet/akka.net/languages","stargazers_url":"https://api.github.com/repos/akkadotnet/akka.net/stargazers","contributors_url":"https://api.github.com/repos/akkadotnet/akka.net/contributors","subscribers_url":"https://api.github.com/repos/akkadotnet/akka.net/subscribers","subscription_url":"https://api.github.com/repos/akkadotnet/akka.net/subscription","commits_url":"https://api.github.com/repos/akkadotnet/akka.net/commits{/sha}","git_commits_url":"https://api.github.com/repos/akkadotnet/akka.net/git/commits{/sha}","comments_url":"https://api.github.com/repos/akkadotnet/akka.net/comments{/number}","issue_comment_url":"https://api.github.com/repos/akkadotnet/akka.net/issues/comments{/number}","contents_url":"https://api.github.com/repos/akkadotnet/akka.net/contents/{+path}","compare_url":"https://api.github.com/repos/akkadotnet/akka.net/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akkadotnet/akka.net/merges","archive_url":"https://api.github.com/repos/akkadotnet/akka.net/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akkadotnet/akka.net/downloads","issues_url":"https://api.github.com/repos/akkadotnet/akka.net/issues{/number}","pulls_url":"https://api.github.com/repos/akkadotnet/akka.net/pulls{/number}","milestones_url":"https://api.github.com/repos/akkadotnet/akka.net/milestones{/number}","notifications_url":"https://api.github.com/repos/akkadotnet/akka.net/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akkadotnet/akka.net/labels{/name}","releases_url":"https://api.github.com/repos/akkadotnet/akka.net/releases{/id}","created_at":"2013-12-29T14:17:38Z","updated_at":"2015-07-18T07:30:09Z","pushed_at":"2015-07-18T08:26:17Z","git_url":"git://github.com/akkadotnet/akka.net.git","ssh_url":"git@github.com:akkadotnet/akka.net.git","clone_url":"https://github.com/akkadotnet/akka.net.git","svn_url":"https://github.com/akkadotnet/akka.net","homepage":"http://getakka.net","size":58706,"stargazers_count":977,"watchers_count":977,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":221,"mirror_url":null,"open_issues_count":85,"forks":221,"open_issues":85,"watchers":977,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1169"},"html":{"href":"https://github.com/akkadotnet/akka.net/pull/1169"},"issue":{"href":"https://api.github.com/repos/akkadotnet/akka.net/issues/1169"},"comments":{"href":"https://api.github.com/repos/akkadotnet/akka.net/issues/1169/comments"},"review_comments":{"href":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1169/comments"},"review_comment":{"href":"https://api.github.com/repos/akkadotnet/akka.net/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akkadotnet/akka.net/pulls/1169/commits"},"statuses":{"href":"https://api.github.com/repos/akkadotnet/akka.net/statuses/c0605b92ef24030b714e458a494a7f043b78437d"}}}}