{"action":"created","comment":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/comments/37661819","id":37661819,"diff_hunk":"@@ -2039,14 +2039,18 @@\n            (with-space-sensitive\n             (let* ((head (parse-unary-prefix s))\n                    (t    (peek-token s)))\n-              (if (ts:space? s)\n+              (cond\n+                 ((eqv? head '__LINE__) (input-port-line (ts:port s)))\n+                 ((eqv? head '__FILE__) `(call string (quote ,current-filename)))","path":"src/julia-parser.scm","position":7,"original_position":7,"commit_id":"5e4377461ebad5cc720fc1eb24618dde32273b1d","original_commit_id":"5e4377461ebad5cc720fc1eb24618dde32273b1d","user":{"login":"JeffBezanson","id":744556,"avatar_url":"https://avatars.githubusercontent.com/u/744556?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffBezanson","html_url":"https://github.com/JeffBezanson","followers_url":"https://api.github.com/users/JeffBezanson/followers","following_url":"https://api.github.com/users/JeffBezanson/following{/other_user}","gists_url":"https://api.github.com/users/JeffBezanson/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffBezanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffBezanson/subscriptions","organizations_url":"https://api.github.com/users/JeffBezanson/orgs","repos_url":"https://api.github.com/users/JeffBezanson/repos","events_url":"https://api.github.com/users/JeffBezanson/events{/privacy}","received_events_url":"https://api.github.com/users/JeffBezanson/received_events","type":"User","site_admin":false},"body":"Could just be a constant string, `(string current-filename)`.","created_at":"2015-08-21T18:13:38Z","updated_at":"2015-08-21T18:13:38Z","html_url":"https://github.com/JuliaLang/julia/pull/12727#discussion_r37661819","pull_request_url":"https://api.github.com/repos/JuliaLang/julia/pulls/12727","_links":{"self":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/comments/37661819"},"html":{"href":"https://github.com/JuliaLang/julia/pull/12727#discussion_r37661819"},"pull_request":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/12727"}}},"pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/12727","id":43004198,"html_url":"https://github.com/JuliaLang/julia/pull/12727","diff_url":"https://github.com/JuliaLang/julia/pull/12727.diff","patch_url":"https://github.com/JuliaLang/julia/pull/12727.patch","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/12727","number":12727,"state":"open","locked":false,"title":"RFC: Implement @__LINE__ and @__FILE__ macros","user":{"login":"ihnorton","id":327706,"avatar_url":"https://avatars.githubusercontent.com/u/327706?v=3","gravatar_id":"","url":"https://api.github.com/users/ihnorton","html_url":"https://github.com/ihnorton","followers_url":"https://api.github.com/users/ihnorton/followers","following_url":"https://api.github.com/users/ihnorton/following{/other_user}","gists_url":"https://api.github.com/users/ihnorton/gists{/gist_id}","starred_url":"https://api.github.com/users/ihnorton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihnorton/subscriptions","organizations_url":"https://api.github.com/users/ihnorton/orgs","repos_url":"https://api.github.com/users/ihnorton/repos","events_url":"https://api.github.com/users/ihnorton/events{/privacy}","received_events_url":"https://api.github.com/users/ihnorton/received_events","type":"User","site_admin":false},"body":"(upated) Implements `__LINE__` and `__FILE__` magic macros returning the line number (integer) and filename (as string) for a given call location.\r\n\r\nFixes #8066\r\n\r\n~~*This is what happens when you force the riff-raff to learn a little scheme.*~~\r\n","created_at":"2015-08-21T04:56:30Z","updated_at":"2015-08-21T18:13:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"283141fd8688ad8c7b853688a360bfbb2e8b949c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JuliaLang/julia/pulls/12727/commits","review_comments_url":"https://api.github.com/repos/JuliaLang/julia/pulls/12727/comments","review_comment_url":"https://api.github.com/repos/JuliaLang/julia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/12727/comments","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/5e4377461ebad5cc720fc1eb24618dde32273b1d","head":{"label":"ihnorton:on-location","ref":"on-location","sha":"5e4377461ebad5cc720fc1eb24618dde32273b1d","user":{"login":"ihnorton","id":327706,"avatar_url":"https://avatars.githubusercontent.com/u/327706?v=3","gravatar_id":"","url":"https://api.github.com/users/ihnorton","html_url":"https://github.com/ihnorton","followers_url":"https://api.github.com/users/ihnorton/followers","following_url":"https://api.github.com/users/ihnorton/following{/other_user}","gists_url":"https://api.github.com/users/ihnorton/gists{/gist_id}","starred_url":"https://api.github.com/users/ihnorton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihnorton/subscriptions","organizations_url":"https://api.github.com/users/ihnorton/orgs","repos_url":"https://api.github.com/users/ihnorton/repos","events_url":"https://api.github.com/users/ihnorton/events{/privacy}","received_events_url":"https://api.github.com/users/ihnorton/received_events","type":"User","site_admin":false},"repo":{"id":10470568,"name":"julia","full_name":"ihnorton/julia","owner":{"login":"ihnorton","id":327706,"avatar_url":"https://avatars.githubusercontent.com/u/327706?v=3","gravatar_id":"","url":"https://api.github.com/users/ihnorton","html_url":"https://github.com/ihnorton","followers_url":"https://api.github.com/users/ihnorton/followers","following_url":"https://api.github.com/users/ihnorton/following{/other_user}","gists_url":"https://api.github.com/users/ihnorton/gists{/gist_id}","starred_url":"https://api.github.com/users/ihnorton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihnorton/subscriptions","organizations_url":"https://api.github.com/users/ihnorton/orgs","repos_url":"https://api.github.com/users/ihnorton/repos","events_url":"https://api.github.com/users/ihnorton/events{/privacy}","received_events_url":"https://api.github.com/users/ihnorton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ihnorton/julia","description":"The Julia Language: A fresh approach to technical computing.","fork":true,"url":"https://api.github.com/repos/ihnorton/julia","forks_url":"https://api.github.com/repos/ihnorton/julia/forks","keys_url":"https://api.github.com/repos/ihnorton/julia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ihnorton/julia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ihnorton/julia/teams","hooks_url":"https://api.github.com/repos/ihnorton/julia/hooks","issue_events_url":"https://api.github.com/repos/ihnorton/julia/issues/events{/number}","events_url":"https://api.github.com/repos/ihnorton/julia/events","assignees_url":"https://api.github.com/repos/ihnorton/julia/assignees{/user}","branches_url":"https://api.github.com/repos/ihnorton/julia/branches{/branch}","tags_url":"https://api.github.com/repos/ihnorton/julia/tags","blobs_url":"https://api.github.com/repos/ihnorton/julia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ihnorton/julia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ihnorton/julia/git/refs{/sha}","trees_url":"https://api.github.com/repos/ihnorton/julia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ihnorton/julia/statuses/{sha}","languages_url":"https://api.github.com/repos/ihnorton/julia/languages","stargazers_url":"https://api.github.com/repos/ihnorton/julia/stargazers","contributors_url":"https://api.github.com/repos/ihnorton/julia/contributors","subscribers_url":"https://api.github.com/repos/ihnorton/julia/subscribers","subscription_url":"https://api.github.com/repos/ihnorton/julia/subscription","commits_url":"https://api.github.com/repos/ihnorton/julia/commits{/sha}","git_commits_url":"https://api.github.com/repos/ihnorton/julia/git/commits{/sha}","comments_url":"https://api.github.com/repos/ihnorton/julia/comments{/number}","issue_comment_url":"https://api.github.com/repos/ihnorton/julia/issues/comments{/number}","contents_url":"https://api.github.com/repos/ihnorton/julia/contents/{+path}","compare_url":"https://api.github.com/repos/ihnorton/julia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ihnorton/julia/merges","archive_url":"https://api.github.com/repos/ihnorton/julia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ihnorton/julia/downloads","issues_url":"https://api.github.com/repos/ihnorton/julia/issues{/number}","pulls_url":"https://api.github.com/repos/ihnorton/julia/pulls{/number}","milestones_url":"https://api.github.com/repos/ihnorton/julia/milestones{/number}","notifications_url":"https://api.github.com/repos/ihnorton/julia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ihnorton/julia/labels{/name}","releases_url":"https://api.github.com/repos/ihnorton/julia/releases{/id}","created_at":"2013-06-04T04:01:53Z","updated_at":"2015-01-03T04:21:31Z","pushed_at":"2015-08-21T18:02:19Z","git_url":"git://github.com/ihnorton/julia.git","ssh_url":"git@github.com:ihnorton/julia.git","clone_url":"https://github.com/ihnorton/julia.git","svn_url":"https://github.com/ihnorton/julia","homepage":"http://julialang.org/","size":79653,"stargazers_count":2,"watchers_count":2,"language":"Julia","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":2,"default_branch":"master"}},"base":{"label":"JuliaLang:master","ref":"master","sha":"97ac6a0ef8e238e2b59ddffd1eab8e614262027f","user":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"repo":{"id":1644196,"name":"julia","full_name":"JuliaLang/julia","owner":{"login":"JuliaLang","id":743164,"avatar_url":"https://avatars.githubusercontent.com/u/743164?v=3","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JuliaLang/julia","description":"The Julia Language: A fresh approach to technical computing.","fork":false,"url":"https://api.github.com/repos/JuliaLang/julia","forks_url":"https://api.github.com/repos/JuliaLang/julia/forks","keys_url":"https://api.github.com/repos/JuliaLang/julia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaLang/julia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaLang/julia/teams","hooks_url":"https://api.github.com/repos/JuliaLang/julia/hooks","issue_events_url":"https://api.github.com/repos/JuliaLang/julia/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaLang/julia/events","assignees_url":"https://api.github.com/repos/JuliaLang/julia/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaLang/julia/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaLang/julia/tags","blobs_url":"https://api.github.com/repos/JuliaLang/julia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaLang/julia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaLang/julia/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaLang/julia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaLang/julia/languages","stargazers_url":"https://api.github.com/repos/JuliaLang/julia/stargazers","contributors_url":"https://api.github.com/repos/JuliaLang/julia/contributors","subscribers_url":"https://api.github.com/repos/JuliaLang/julia/subscribers","subscription_url":"https://api.github.com/repos/JuliaLang/julia/subscription","commits_url":"https://api.github.com/repos/JuliaLang/julia/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaLang/julia/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaLang/julia/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaLang/julia/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaLang/julia/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaLang/julia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaLang/julia/merges","archive_url":"https://api.github.com/repos/JuliaLang/julia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaLang/julia/downloads","issues_url":"https://api.github.com/repos/JuliaLang/julia/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaLang/julia/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaLang/julia/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaLang/julia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaLang/julia/labels{/name}","releases_url":"https://api.github.com/repos/JuliaLang/julia/releases{/id}","created_at":"2011-04-21T07:01:50Z","updated_at":"2015-08-21T06:57:00Z","pushed_at":"2015-08-21T18:10:00Z","git_url":"git://github.com/JuliaLang/julia.git","ssh_url":"git@github.com:JuliaLang/julia.git","clone_url":"https://github.com/JuliaLang/julia.git","svn_url":"https://github.com/JuliaLang/julia","homepage":"http://julialang.org/","size":215555,"stargazers_count":5889,"watchers_count":5889,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1277,"mirror_url":null,"open_issues_count":1327,"forks":1277,"open_issues":1327,"watchers":5889,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/12727"},"html":{"href":"https://github.com/JuliaLang/julia/pull/12727"},"issue":{"href":"https://api.github.com/repos/JuliaLang/julia/issues/12727"},"comments":{"href":"https://api.github.com/repos/JuliaLang/julia/issues/12727/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/12727/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaLang/julia/pulls/12727/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaLang/julia/statuses/5e4377461ebad5cc720fc1eb24618dde32273b1d"}}}}