{"action":"created","comment":{"url":"https://api.github.com/repos/howl-editor/howl/pulls/comments/54356056","id":54356056,"diff_hunk":"@@ -0,0 +1,85 @@\n+-- Copyright 2016 The Howl Developers\n+-- License: MIT (see LICENSE.md at the top-level directory of the distribution)\n+\n+howl.aux.lpeg_lexer ->\n+  c = capture\n+  ident = (alpha + '_')^1 * (alpha + digit + '_')^0\n+  ws = c 'whitespace', space\n+\n+  identifier = c 'identifier', ident\n+\n+  keyword = c 'keyword', word {\n+    'break', 'case', 'chan', 'const', 'continue', 'default', 'defer', 'else',\n+    'fallthrough', 'for', 'func', 'go', 'goto', 'if', 'import', 'interface',\n+    'map', 'package', 'range', 'return', 'select', 'struct', 'switch', 'type',\n+    'var'\n+  }\n+\n+  type = c 'type', word {\n+    'bool', 'byte', 'complex64', 'complex128', 'float32', 'float64', 'int8',\n+    'int16', 'int32', 'int64', 'rune', 'string', 'uint8', 'uint16', 'uint32', 'uint64',\n+    'complex', 'float', 'int', 'uint', 'uintptr'\n+  }\n+  \n+  builtin = c 'function', word {\n+    'append', 'cap', 'close', 'complex', 'copy', 'delete', 'imag', 'len', 'make',\n+    'new', 'panic', 'print', 'println', 'real', 'recover'\n+  }\n+  \n+  fdecl = any {\n+    sequence {\n+      c 'keyword', 'func'\n+      ws^1\n+      c 'fdecl', ident\n+    }\n+    sequence {\n+      c 'keyword', 'func'\n+      ws^1\n+      span '(', ')'\n+      ws^1\n+      c 'fdecl', ident      \n+    }\n+  }\n+\n+  operator = c 'operator', S'+-*/%&|^<>=!:;.,()[]{}'\n+\n+  comment = c 'comment', any {\n+    P'//' * scan_until eol,\n+    span '/*', '*/'\n+  }\n+\n+  char_constant = span(\"'\", \"'\", '\\\\')\n+\n+  number = c 'number', any {\n+    char_constant,\n+    float,\n+    hexadecimal_float,\n+    hexadecimal,\n+    octal,\n+    R'19' * digit^0,\n+  }\n+\n+  string = c 'string', any {\n+    span(\"'\", \"'\", '\\\\')\n+    span('\"', '\"', '\\\\')\n+    span('`', '`', nil)","path":"bundles/go/go_lexer.moon","position":null,"original_position":65,"commit_id":"75fbb31e6b6bfcf6292bba8537fd17b2f9c12522","original_commit_id":"0013528779685c9fd23eee9b7c7e35c37e9f9015","user":{"login":"barnybug","id":146373,"avatar_url":"https://avatars.githubusercontent.com/u/146373?v=3","gravatar_id":"","url":"https://api.github.com/users/barnybug","html_url":"https://github.com/barnybug","followers_url":"https://api.github.com/users/barnybug/followers","following_url":"https://api.github.com/users/barnybug/following{/other_user}","gists_url":"https://api.github.com/users/barnybug/gists{/gist_id}","starred_url":"https://api.github.com/users/barnybug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barnybug/subscriptions","organizations_url":"https://api.github.com/users/barnybug/orgs","repos_url":"https://api.github.com/users/barnybug/repos","events_url":"https://api.github.com/users/barnybug/events{/privacy}","received_events_url":"https://api.github.com/users/barnybug/received_events","type":"User","site_admin":false},"body":"Sure - it just read better to make it explicit that there are no escape chars in raw strings.","created_at":"2016-02-28T20:50:44Z","updated_at":"2016-02-28T20:50:44Z","html_url":"https://github.com/howl-editor/howl/pull/175#discussion_r54356056","pull_request_url":"https://api.github.com/repos/howl-editor/howl/pulls/175","_links":{"self":{"href":"https://api.github.com/repos/howl-editor/howl/pulls/comments/54356056"},"html":{"href":"https://github.com/howl-editor/howl/pull/175#discussion_r54356056"},"pull_request":{"href":"https://api.github.com/repos/howl-editor/howl/pulls/175"}}},"pull_request":{"url":"https://api.github.com/repos/howl-editor/howl/pulls/175","id":61003926,"html_url":"https://github.com/howl-editor/howl/pull/175","diff_url":"https://github.com/howl-editor/howl/pull/175.diff","patch_url":"https://github.com/howl-editor/howl/pull/175.patch","issue_url":"https://api.github.com/repos/howl-editor/howl/issues/175","number":175,"state":"open","locked":false,"title":"Go mode","user":{"login":"barnybug","id":146373,"avatar_url":"https://avatars.githubusercontent.com/u/146373?v=3","gravatar_id":"","url":"https://api.github.com/users/barnybug","html_url":"https://github.com/barnybug","followers_url":"https://api.github.com/users/barnybug/followers","following_url":"https://api.github.com/users/barnybug/following{/other_user}","gists_url":"https://api.github.com/users/barnybug/gists{/gist_id}","starred_url":"https://api.github.com/users/barnybug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barnybug/subscriptions","organizations_url":"https://api.github.com/users/barnybug/orgs","repos_url":"https://api.github.com/users/barnybug/repos","events_url":"https://api.github.com/users/barnybug/events{/privacy}","received_events_url":"https://api.github.com/users/barnybug/received_events","type":"User","site_admin":false},"body":"go bundle adding some go support using the new lexer, smart completion and automatic code reformatting using gofmt.\r\n","created_at":"2016-02-28T19:50:48Z","updated_at":"2016-02-28T20:50:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7cf8685d28407a8a0c38cc079e5189cb292c0547","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/howl-editor/howl/pulls/175/commits","review_comments_url":"https://api.github.com/repos/howl-editor/howl/pulls/175/comments","review_comment_url":"https://api.github.com/repos/howl-editor/howl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/howl-editor/howl/issues/175/comments","statuses_url":"https://api.github.com/repos/howl-editor/howl/statuses/75fbb31e6b6bfcf6292bba8537fd17b2f9c12522","head":{"label":"barnybug:go-mode","ref":"go-mode","sha":"75fbb31e6b6bfcf6292bba8537fd17b2f9c12522","user":{"login":"barnybug","id":146373,"avatar_url":"https://avatars.githubusercontent.com/u/146373?v=3","gravatar_id":"","url":"https://api.github.com/users/barnybug","html_url":"https://github.com/barnybug","followers_url":"https://api.github.com/users/barnybug/followers","following_url":"https://api.github.com/users/barnybug/following{/other_user}","gists_url":"https://api.github.com/users/barnybug/gists{/gist_id}","starred_url":"https://api.github.com/users/barnybug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barnybug/subscriptions","organizations_url":"https://api.github.com/users/barnybug/orgs","repos_url":"https://api.github.com/users/barnybug/repos","events_url":"https://api.github.com/users/barnybug/events{/privacy}","received_events_url":"https://api.github.com/users/barnybug/received_events","type":"User","site_admin":false},"repo":{"id":51658027,"name":"howl","full_name":"barnybug/howl","owner":{"login":"barnybug","id":146373,"avatar_url":"https://avatars.githubusercontent.com/u/146373?v=3","gravatar_id":"","url":"https://api.github.com/users/barnybug","html_url":"https://github.com/barnybug","followers_url":"https://api.github.com/users/barnybug/followers","following_url":"https://api.github.com/users/barnybug/following{/other_user}","gists_url":"https://api.github.com/users/barnybug/gists{/gist_id}","starred_url":"https://api.github.com/users/barnybug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barnybug/subscriptions","organizations_url":"https://api.github.com/users/barnybug/orgs","repos_url":"https://api.github.com/users/barnybug/repos","events_url":"https://api.github.com/users/barnybug/events{/privacy}","received_events_url":"https://api.github.com/users/barnybug/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/barnybug/howl","description":"The Howl Editor","fork":true,"url":"https://api.github.com/repos/barnybug/howl","forks_url":"https://api.github.com/repos/barnybug/howl/forks","keys_url":"https://api.github.com/repos/barnybug/howl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/barnybug/howl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/barnybug/howl/teams","hooks_url":"https://api.github.com/repos/barnybug/howl/hooks","issue_events_url":"https://api.github.com/repos/barnybug/howl/issues/events{/number}","events_url":"https://api.github.com/repos/barnybug/howl/events","assignees_url":"https://api.github.com/repos/barnybug/howl/assignees{/user}","branches_url":"https://api.github.com/repos/barnybug/howl/branches{/branch}","tags_url":"https://api.github.com/repos/barnybug/howl/tags","blobs_url":"https://api.github.com/repos/barnybug/howl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/barnybug/howl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/barnybug/howl/git/refs{/sha}","trees_url":"https://api.github.com/repos/barnybug/howl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/barnybug/howl/statuses/{sha}","languages_url":"https://api.github.com/repos/barnybug/howl/languages","stargazers_url":"https://api.github.com/repos/barnybug/howl/stargazers","contributors_url":"https://api.github.com/repos/barnybug/howl/contributors","subscribers_url":"https://api.github.com/repos/barnybug/howl/subscribers","subscription_url":"https://api.github.com/repos/barnybug/howl/subscription","commits_url":"https://api.github.com/repos/barnybug/howl/commits{/sha}","git_commits_url":"https://api.github.com/repos/barnybug/howl/git/commits{/sha}","comments_url":"https://api.github.com/repos/barnybug/howl/comments{/number}","issue_comment_url":"https://api.github.com/repos/barnybug/howl/issues/comments{/number}","contents_url":"https://api.github.com/repos/barnybug/howl/contents/{+path}","compare_url":"https://api.github.com/repos/barnybug/howl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/barnybug/howl/merges","archive_url":"https://api.github.com/repos/barnybug/howl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/barnybug/howl/downloads","issues_url":"https://api.github.com/repos/barnybug/howl/issues{/number}","pulls_url":"https://api.github.com/repos/barnybug/howl/pulls{/number}","milestones_url":"https://api.github.com/repos/barnybug/howl/milestones{/number}","notifications_url":"https://api.github.com/repos/barnybug/howl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/barnybug/howl/labels{/name}","releases_url":"https://api.github.com/repos/barnybug/howl/releases{/id}","deployments_url":"https://api.github.com/repos/barnybug/howl/deployments","created_at":"2016-02-13T18:00:29Z","updated_at":"2016-02-13T18:00:32Z","pushed_at":"2016-02-28T20:41:53Z","git_url":"git://github.com/barnybug/howl.git","ssh_url":"git@github.com:barnybug/howl.git","clone_url":"https://github.com/barnybug/howl.git","svn_url":"https://github.com/barnybug/howl","homepage":"http://howl.io","size":10349,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"howl-editor:master","ref":"master","sha":"b9b1f0682511326571f54b123b58f7678397bf0d","user":{"login":"howl-editor","id":7137358,"avatar_url":"https://avatars.githubusercontent.com/u/7137358?v=3","gravatar_id":"","url":"https://api.github.com/users/howl-editor","html_url":"https://github.com/howl-editor","followers_url":"https://api.github.com/users/howl-editor/followers","following_url":"https://api.github.com/users/howl-editor/following{/other_user}","gists_url":"https://api.github.com/users/howl-editor/gists{/gist_id}","starred_url":"https://api.github.com/users/howl-editor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howl-editor/subscriptions","organizations_url":"https://api.github.com/users/howl-editor/orgs","repos_url":"https://api.github.com/users/howl-editor/repos","events_url":"https://api.github.com/users/howl-editor/events{/privacy}","received_events_url":"https://api.github.com/users/howl-editor/received_events","type":"Organization","site_admin":false},"repo":{"id":14235156,"name":"howl","full_name":"howl-editor/howl","owner":{"login":"howl-editor","id":7137358,"avatar_url":"https://avatars.githubusercontent.com/u/7137358?v=3","gravatar_id":"","url":"https://api.github.com/users/howl-editor","html_url":"https://github.com/howl-editor","followers_url":"https://api.github.com/users/howl-editor/followers","following_url":"https://api.github.com/users/howl-editor/following{/other_user}","gists_url":"https://api.github.com/users/howl-editor/gists{/gist_id}","starred_url":"https://api.github.com/users/howl-editor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howl-editor/subscriptions","organizations_url":"https://api.github.com/users/howl-editor/orgs","repos_url":"https://api.github.com/users/howl-editor/repos","events_url":"https://api.github.com/users/howl-editor/events{/privacy}","received_events_url":"https://api.github.com/users/howl-editor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/howl-editor/howl","description":"The Howl Editor","fork":false,"url":"https://api.github.com/repos/howl-editor/howl","forks_url":"https://api.github.com/repos/howl-editor/howl/forks","keys_url":"https://api.github.com/repos/howl-editor/howl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/howl-editor/howl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/howl-editor/howl/teams","hooks_url":"https://api.github.com/repos/howl-editor/howl/hooks","issue_events_url":"https://api.github.com/repos/howl-editor/howl/issues/events{/number}","events_url":"https://api.github.com/repos/howl-editor/howl/events","assignees_url":"https://api.github.com/repos/howl-editor/howl/assignees{/user}","branches_url":"https://api.github.com/repos/howl-editor/howl/branches{/branch}","tags_url":"https://api.github.com/repos/howl-editor/howl/tags","blobs_url":"https://api.github.com/repos/howl-editor/howl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/howl-editor/howl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/howl-editor/howl/git/refs{/sha}","trees_url":"https://api.github.com/repos/howl-editor/howl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/howl-editor/howl/statuses/{sha}","languages_url":"https://api.github.com/repos/howl-editor/howl/languages","stargazers_url":"https://api.github.com/repos/howl-editor/howl/stargazers","contributors_url":"https://api.github.com/repos/howl-editor/howl/contributors","subscribers_url":"https://api.github.com/repos/howl-editor/howl/subscribers","subscription_url":"https://api.github.com/repos/howl-editor/howl/subscription","commits_url":"https://api.github.com/repos/howl-editor/howl/commits{/sha}","git_commits_url":"https://api.github.com/repos/howl-editor/howl/git/commits{/sha}","comments_url":"https://api.github.com/repos/howl-editor/howl/comments{/number}","issue_comment_url":"https://api.github.com/repos/howl-editor/howl/issues/comments{/number}","contents_url":"https://api.github.com/repos/howl-editor/howl/contents/{+path}","compare_url":"https://api.github.com/repos/howl-editor/howl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/howl-editor/howl/merges","archive_url":"https://api.github.com/repos/howl-editor/howl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/howl-editor/howl/downloads","issues_url":"https://api.github.com/repos/howl-editor/howl/issues{/number}","pulls_url":"https://api.github.com/repos/howl-editor/howl/pulls{/number}","milestones_url":"https://api.github.com/repos/howl-editor/howl/milestones{/number}","notifications_url":"https://api.github.com/repos/howl-editor/howl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/howl-editor/howl/labels{/name}","releases_url":"https://api.github.com/repos/howl-editor/howl/releases{/id}","deployments_url":"https://api.github.com/repos/howl-editor/howl/deployments","created_at":"2013-11-08T14:38:11Z","updated_at":"2016-02-19T08:45:33Z","pushed_at":"2016-02-28T20:41:53Z","git_url":"git://github.com/howl-editor/howl.git","ssh_url":"git@github.com:howl-editor/howl.git","clone_url":"https://github.com/howl-editor/howl.git","svn_url":"https://github.com/howl-editor/howl","homepage":"http://howl.io","size":10456,"stargazers_count":98,"watchers_count":98,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":16,"forks":10,"open_issues":16,"watchers":98,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/howl-editor/howl/pulls/175"},"html":{"href":"https://github.com/howl-editor/howl/pull/175"},"issue":{"href":"https://api.github.com/repos/howl-editor/howl/issues/175"},"comments":{"href":"https://api.github.com/repos/howl-editor/howl/issues/175/comments"},"review_comments":{"href":"https://api.github.com/repos/howl-editor/howl/pulls/175/comments"},"review_comment":{"href":"https://api.github.com/repos/howl-editor/howl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/howl-editor/howl/pulls/175/commits"},"statuses":{"href":"https://api.github.com/repos/howl-editor/howl/statuses/75fbb31e6b6bfcf6292bba8537fd17b2f9c12522"}}}}