{"action":"created","comment":{"url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/pulls/comments/37503212","id":37503212,"diff_hunk":"@@ -95,11 +99,20 @@ function parsebracket end\n parsebracket(text :: AbstractString) = parsebracket(getdirective(text)...)\n parsebracket{D}(:: Directive{D}, text) = error(\"Unknown directive: '$D'\")\n \n+function parsebracket{D}(TD :: Directive{D}, arg, text)\n+    if strip(arg) == \"\"\n+        parsebracket(TD, text)\n+    else\n+        error(\"parsebracket not defined for directive '$D' with positional argument.\")\n+    end\n+end\n+\n function parsebracket(:: directive\"docs\", text)\n+    eval(Expr(:toplevel, Expr(:using, :Lexicon)))","path":"src/Directives.jl","position":53,"original_position":53,"commit_id":"0ae61147193c5415862017cef15fc37121404c8b","original_commit_id":"0ae61147193c5415862017cef15fc37121404c8b","user":{"login":"MichaelHatherly","id":6144086,"avatar_url":"https://avatars.githubusercontent.com/u/6144086?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelHatherly","html_url":"https://github.com/MichaelHatherly","followers_url":"https://api.github.com/users/MichaelHatherly/followers","following_url":"https://api.github.com/users/MichaelHatherly/following{/other_user}","gists_url":"https://api.github.com/users/MichaelHatherly/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelHatherly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelHatherly/subscriptions","organizations_url":"https://api.github.com/users/MichaelHatherly/orgs","repos_url":"https://api.github.com/users/MichaelHatherly/repos","events_url":"https://api.github.com/users/MichaelHatherly/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelHatherly/received_events","type":"User","site_admin":false},"body":"> You could just special case README...\r\n\r\nCould do, I'll try out both ways. Something more general than special-casing a name would be nicer though.","created_at":"2015-08-20T07:49:45Z","updated_at":"2015-08-20T07:49:45Z","html_url":"https://github.com/MichaelHatherly/Docile.jl/pull/149#discussion_r37503212","pull_request_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/pulls/149","_links":{"self":{"href":"https://api.github.com/repos/MichaelHatherly/Docile.jl/pulls/comments/37503212"},"html":{"href":"https://github.com/MichaelHatherly/Docile.jl/pull/149#discussion_r37503212"},"pull_request":{"href":"https://api.github.com/repos/MichaelHatherly/Docile.jl/pulls/149"}}},"pull_request":{"url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/pulls/149","id":42543129,"html_url":"https://github.com/MichaelHatherly/Docile.jl/pull/149","diff_url":"https://github.com/MichaelHatherly/Docile.jl/pull/149.diff","patch_url":"https://github.com/MichaelHatherly/Docile.jl/pull/149.patch","issue_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/issues/149","number":149,"state":"open","locked":false,"title":"Allow positional argument for directives ( {{directive: posarg\\n ).","user":{"login":"hayd","id":1931852,"avatar_url":"https://avatars.githubusercontent.com/u/1931852?v=3","gravatar_id":"","url":"https://api.github.com/users/hayd","html_url":"https://github.com/hayd","followers_url":"https://api.github.com/users/hayd/followers","following_url":"https://api.github.com/users/hayd/following{/other_user}","gists_url":"https://api.github.com/users/hayd/gists{/gist_id}","starred_url":"https://api.github.com/users/hayd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hayd/subscriptions","organizations_url":"https://api.github.com/users/hayd/orgs","repos_url":"https://api.github.com/users/hayd/repos","events_url":"https://api.github.com/users/hayd/events{/privacy}","received_events_url":"https://api.github.com/users/hayd/received_events","type":"User","site_admin":false},"body":"Thoughts?\r\n\r\n*I'm not sure this is needed yet, the reason we were discussing was passing a sandbox module to repl.*\r\n\r\nEdit: pushed an update (to improve the regex).","created_at":"2015-08-16T20:52:27Z","updated_at":"2015-08-20T07:49:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c6f900496692ffeb3245cf7eb60bb18e123b4ce0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/pulls/149/commits","review_comments_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/pulls/149/comments","review_comment_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/issues/149/comments","statuses_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/statuses/0ae61147193c5415862017cef15fc37121404c8b","head":{"label":"hayd:posarg","ref":"posarg","sha":"0ae61147193c5415862017cef15fc37121404c8b","user":{"login":"hayd","id":1931852,"avatar_url":"https://avatars.githubusercontent.com/u/1931852?v=3","gravatar_id":"","url":"https://api.github.com/users/hayd","html_url":"https://github.com/hayd","followers_url":"https://api.github.com/users/hayd/followers","following_url":"https://api.github.com/users/hayd/following{/other_user}","gists_url":"https://api.github.com/users/hayd/gists{/gist_id}","starred_url":"https://api.github.com/users/hayd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hayd/subscriptions","organizations_url":"https://api.github.com/users/hayd/orgs","repos_url":"https://api.github.com/users/hayd/repos","events_url":"https://api.github.com/users/hayd/events{/privacy}","received_events_url":"https://api.github.com/users/hayd/received_events","type":"User","site_admin":false},"repo":{"id":40837073,"name":"Docile.jl","full_name":"hayd/Docile.jl","owner":{"login":"hayd","id":1931852,"avatar_url":"https://avatars.githubusercontent.com/u/1931852?v=3","gravatar_id":"","url":"https://api.github.com/users/hayd","html_url":"https://github.com/hayd","followers_url":"https://api.github.com/users/hayd/followers","following_url":"https://api.github.com/users/hayd/following{/other_user}","gists_url":"https://api.github.com/users/hayd/gists{/gist_id}","starred_url":"https://api.github.com/users/hayd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hayd/subscriptions","organizations_url":"https://api.github.com/users/hayd/orgs","repos_url":"https://api.github.com/users/hayd/repos","events_url":"https://api.github.com/users/hayd/events{/privacy}","received_events_url":"https://api.github.com/users/hayd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hayd/Docile.jl","description":"Julia package documentation system.","fork":true,"url":"https://api.github.com/repos/hayd/Docile.jl","forks_url":"https://api.github.com/repos/hayd/Docile.jl/forks","keys_url":"https://api.github.com/repos/hayd/Docile.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hayd/Docile.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hayd/Docile.jl/teams","hooks_url":"https://api.github.com/repos/hayd/Docile.jl/hooks","issue_events_url":"https://api.github.com/repos/hayd/Docile.jl/issues/events{/number}","events_url":"https://api.github.com/repos/hayd/Docile.jl/events","assignees_url":"https://api.github.com/repos/hayd/Docile.jl/assignees{/user}","branches_url":"https://api.github.com/repos/hayd/Docile.jl/branches{/branch}","tags_url":"https://api.github.com/repos/hayd/Docile.jl/tags","blobs_url":"https://api.github.com/repos/hayd/Docile.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hayd/Docile.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hayd/Docile.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/hayd/Docile.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hayd/Docile.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/hayd/Docile.jl/languages","stargazers_url":"https://api.github.com/repos/hayd/Docile.jl/stargazers","contributors_url":"https://api.github.com/repos/hayd/Docile.jl/contributors","subscribers_url":"https://api.github.com/repos/hayd/Docile.jl/subscribers","subscription_url":"https://api.github.com/repos/hayd/Docile.jl/subscription","commits_url":"https://api.github.com/repos/hayd/Docile.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/hayd/Docile.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/hayd/Docile.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/hayd/Docile.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/hayd/Docile.jl/contents/{+path}","compare_url":"https://api.github.com/repos/hayd/Docile.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hayd/Docile.jl/merges","archive_url":"https://api.github.com/repos/hayd/Docile.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hayd/Docile.jl/downloads","issues_url":"https://api.github.com/repos/hayd/Docile.jl/issues{/number}","pulls_url":"https://api.github.com/repos/hayd/Docile.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/hayd/Docile.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/hayd/Docile.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hayd/Docile.jl/labels{/name}","releases_url":"https://api.github.com/repos/hayd/Docile.jl/releases{/id}","created_at":"2015-08-16T19:52:59Z","updated_at":"2015-08-16T19:53:00Z","pushed_at":"2015-08-17T06:01:52Z","git_url":"git://github.com/hayd/Docile.jl.git","ssh_url":"git@github.com:hayd/Docile.jl.git","clone_url":"https://github.com/hayd/Docile.jl.git","svn_url":"https://github.com/hayd/Docile.jl","homepage":"","size":1943,"stargazers_count":0,"watchers_count":0,"language":"Julia","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":"MichaelHatherly:rewrite","ref":"rewrite","sha":"9a5c3519ae8ff5578b22c64087e14f60c6d56dd5","user":{"login":"MichaelHatherly","id":6144086,"avatar_url":"https://avatars.githubusercontent.com/u/6144086?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelHatherly","html_url":"https://github.com/MichaelHatherly","followers_url":"https://api.github.com/users/MichaelHatherly/followers","following_url":"https://api.github.com/users/MichaelHatherly/following{/other_user}","gists_url":"https://api.github.com/users/MichaelHatherly/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelHatherly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelHatherly/subscriptions","organizations_url":"https://api.github.com/users/MichaelHatherly/orgs","repos_url":"https://api.github.com/users/MichaelHatherly/repos","events_url":"https://api.github.com/users/MichaelHatherly/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelHatherly/received_events","type":"User","site_admin":false},"repo":{"id":20543238,"name":"Docile.jl","full_name":"MichaelHatherly/Docile.jl","owner":{"login":"MichaelHatherly","id":6144086,"avatar_url":"https://avatars.githubusercontent.com/u/6144086?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelHatherly","html_url":"https://github.com/MichaelHatherly","followers_url":"https://api.github.com/users/MichaelHatherly/followers","following_url":"https://api.github.com/users/MichaelHatherly/following{/other_user}","gists_url":"https://api.github.com/users/MichaelHatherly/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelHatherly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelHatherly/subscriptions","organizations_url":"https://api.github.com/users/MichaelHatherly/orgs","repos_url":"https://api.github.com/users/MichaelHatherly/repos","events_url":"https://api.github.com/users/MichaelHatherly/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelHatherly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MichaelHatherly/Docile.jl","description":"Julia package documentation system.","fork":false,"url":"https://api.github.com/repos/MichaelHatherly/Docile.jl","forks_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/forks","keys_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/teams","hooks_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/hooks","issue_events_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/issues/events{/number}","events_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/events","assignees_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/assignees{/user}","branches_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/branches{/branch}","tags_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/tags","blobs_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/languages","stargazers_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/stargazers","contributors_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/contributors","subscribers_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/subscribers","subscription_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/subscription","commits_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/contents/{+path}","compare_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/merges","archive_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/downloads","issues_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/issues{/number}","pulls_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/labels{/name}","releases_url":"https://api.github.com/repos/MichaelHatherly/Docile.jl/releases{/id}","created_at":"2014-06-05T22:06:21Z","updated_at":"2015-08-01T11:59:38Z","pushed_at":"2015-08-20T06:30:51Z","git_url":"git://github.com/MichaelHatherly/Docile.jl.git","ssh_url":"git@github.com:MichaelHatherly/Docile.jl.git","clone_url":"https://github.com/MichaelHatherly/Docile.jl.git","svn_url":"https://github.com/MichaelHatherly/Docile.jl","homepage":"","size":1943,"stargazers_count":34,"watchers_count":34,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":8,"forks":11,"open_issues":8,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MichaelHatherly/Docile.jl/pulls/149"},"html":{"href":"https://github.com/MichaelHatherly/Docile.jl/pull/149"},"issue":{"href":"https://api.github.com/repos/MichaelHatherly/Docile.jl/issues/149"},"comments":{"href":"https://api.github.com/repos/MichaelHatherly/Docile.jl/issues/149/comments"},"review_comments":{"href":"https://api.github.com/repos/MichaelHatherly/Docile.jl/pulls/149/comments"},"review_comment":{"href":"https://api.github.com/repos/MichaelHatherly/Docile.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MichaelHatherly/Docile.jl/pulls/149/commits"},"statuses":{"href":"https://api.github.com/repos/MichaelHatherly/Docile.jl/statuses/0ae61147193c5415862017cef15fc37121404c8b"}}}}