{"action":"created","comment":{"url":"https://api.github.com/repos/isagalaev/highlight.js/pulls/comments/28202362","id":28202362,"diff_hunk":"@@ -0,0 +1,71 @@\n+/*\n+Language: Ceylon\n+Author: Lucas Werkmeister <mail@lucaswerkmeister.de>\n+*/\n+function(hljs) {\n+  // 2.3. Identifiers and keywords\n+  var KEYWORDS =\n+    'assembly module package import|0 alias class|0 interface|0 object given value ' +\n+    'assign void|0 function new|0 of extends|0 satisfies|10 abstracts in out return|0 ' +\n+    'break|0 continue|0 throw|0 assert dynamic if|0 else|0 switch|0 case|0 for|0 while|0 try|0 ' +\n+    'catch|0 finally|0 then let this|0 outer super|0 is exists|10 nonempty|10';\n+  // 7.4.1 Declaration Modifiers\n+  var DECLARATION_MODIFIERS =\n+    'shared|10 abstract formal|10 default|10 actual|10 variable late native deprecated' +\n+    'final sealed annotation suppressWarnings small';\n+  // 7.4.2 Documentation\n+  var DOCUMENTATION =\n+    'doc by license see throws tagged';\n+  var LANGUAGE_ANNOTATIONS = DECLARATION_MODIFIERS + ' ' + DOCUMENTATION;\n+  return {\n+    keywords: {\n+      keyword: KEYWORDS,\n+      annotation: LANGUAGE_ANNOTATIONS\n+    },\n+    illegal: '\\\\$[^01]|#[^0-9a-fA-F]',\n+    contains: [\n+      hljs.C_LINE_COMMENT_MODE,\n+      {\n+        // block comment (can be nested, so no hljs.C_BLOCK_COMMENT_MODE)\n+        className: 'comment',\n+        begin: '/\\\\*',\n+        contains: ['self'],\n+        end: '\\\\*/',\n+        relevance: 0\n+      },\n+      {\n+        // verbatim string\n+        className: 'string',\n+        begin: '\"\"\"',\n+        end: '\"\"\"',\n+        relevance: 5\n+      },\n+      {\n+        // string literal or template\n+        className: 'string',\n+        begin: '\"|``',\n+        end: '\"|``',\n+        relevance: 0\n+      },\n+      {\n+        // character literal\n+        className: 'string',\n+        begin: \"'\",\n+        end: \"'\",\n+        relevance: 0\n+      },","path":"src/languages/ceylon.js","position":56,"original_position":56,"commit_id":"9a652aaacf6c81a2564b6faa2b2185aba8145db3","original_commit_id":"9a652aaacf6c81a2564b6faa2b2185aba8145db3","user":{"login":"lucaswerkmeister","id":2346599,"avatar_url":"https://avatars.githubusercontent.com/u/2346599?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaswerkmeister","html_url":"https://github.com/lucaswerkmeister","followers_url":"https://api.github.com/users/lucaswerkmeister/followers","following_url":"https://api.github.com/users/lucaswerkmeister/following{/other_user}","gists_url":"https://api.github.com/users/lucaswerkmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswerkmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswerkmeister/subscriptions","organizations_url":"https://api.github.com/users/lucaswerkmeister/orgs","repos_url":"https://api.github.com/users/lucaswerkmeister/repos","events_url":"https://api.github.com/users/lucaswerkmeister/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswerkmeister/received_events","type":"User","site_admin":false},"body":"I thought that we should give zero relevance to things that are common across many languages, like “strings in double quotes” and “void means no return value”?\r\n\r\nString parts can also start with quotes and end with backticks, or vice versa:\r\n```ceylon\r\n\"Literal part of a string `` expression `` another literal part\"\r\n```\r\nPerhaps I should make different modes for those (same `className` of course), with higher relevance? Backtick interpolation is far less common AFAIK","created_at":"2015-04-12T10:23:54Z","updated_at":"2015-04-12T10:23:54Z","html_url":"https://github.com/isagalaev/highlight.js/pull/825#discussion_r28202362","pull_request_url":"https://api.github.com/repos/isagalaev/highlight.js/pulls/825","_links":{"self":{"href":"https://api.github.com/repos/isagalaev/highlight.js/pulls/comments/28202362"},"html":{"href":"https://github.com/isagalaev/highlight.js/pull/825#discussion_r28202362"},"pull_request":{"href":"https://api.github.com/repos/isagalaev/highlight.js/pulls/825"}}},"pull_request":{"url":"https://api.github.com/repos/isagalaev/highlight.js/pulls/825","id":33108267,"html_url":"https://github.com/isagalaev/highlight.js/pull/825","diff_url":"https://github.com/isagalaev/highlight.js/pull/825.diff","patch_url":"https://github.com/isagalaev/highlight.js/pull/825.patch","issue_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/825","number":825,"state":"open","locked":false,"title":"Add Ceylon language","user":{"login":"lucaswerkmeister","id":2346599,"avatar_url":"https://avatars.githubusercontent.com/u/2346599?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaswerkmeister","html_url":"https://github.com/lucaswerkmeister","followers_url":"https://api.github.com/users/lucaswerkmeister/followers","following_url":"https://api.github.com/users/lucaswerkmeister/following{/other_user}","gists_url":"https://api.github.com/users/lucaswerkmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswerkmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswerkmeister/subscriptions","organizations_url":"https://api.github.com/users/lucaswerkmeister/orgs","repos_url":"https://api.github.com/users/lucaswerkmeister/repos","events_url":"https://api.github.com/users/lucaswerkmeister/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswerkmeister/received_events","type":"User","site_admin":false},"body":"Adds support for the Ceylon programming language ([official website](http://ceylon-lang.org/), [quick introduction](http://ceylon-lang.org/documentation/current/introduction/)).\r\n\r\nThe default test is a combination of code from the [quick introduction](http://ceylon-lang.org/documentation/1.1/introduction/#a_familiar_readable_syntax) and the [tour](http://ceylon-lang.org/documentation/1.1/tour/basics/#operators_for_handling_null_values). In both cases, the code was authored by @gavinking (ceylon/ceylon-lang.org@31c65557d6a36b893b376ff50cc0dba8f9e1ab79, ceylon/ceylon-lang.org@1f768d00e0e26851cb69d2027f61a34d26cbae97, ceylon/ceylon-lang.org@9cd84b10a4da5c749ece6fac77d4973341f73f00, ceylon/ceylon-lang.org@d047d9602528bd1afa8827beccea52b0b6d82738, ceylon/ceylon-lang.org@f0fe1921a431319244122faa44d900d7c7b60c3e). In general, sample code on `ceylon-lang.org` [falls under the ASL2](https://github.com/ceylon/ceylon-lang.org#license), but I’m not sure whether these short snippets are above the threshold of originality to warrant any copyright concerns; @gavinking wdyt?","created_at":"2015-04-11T19:07:19Z","updated_at":"2015-04-12T10:23:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b55da60933fe11271d89df31723cddc4a32797a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/isagalaev/highlight.js/pulls/825/commits","review_comments_url":"https://api.github.com/repos/isagalaev/highlight.js/pulls/825/comments","review_comment_url":"https://api.github.com/repos/isagalaev/highlight.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/825/comments","statuses_url":"https://api.github.com/repos/isagalaev/highlight.js/statuses/9a652aaacf6c81a2564b6faa2b2185aba8145db3","head":{"label":"lucaswerkmeister:ceylon","ref":"ceylon","sha":"9a652aaacf6c81a2564b6faa2b2185aba8145db3","user":{"login":"lucaswerkmeister","id":2346599,"avatar_url":"https://avatars.githubusercontent.com/u/2346599?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaswerkmeister","html_url":"https://github.com/lucaswerkmeister","followers_url":"https://api.github.com/users/lucaswerkmeister/followers","following_url":"https://api.github.com/users/lucaswerkmeister/following{/other_user}","gists_url":"https://api.github.com/users/lucaswerkmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswerkmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswerkmeister/subscriptions","organizations_url":"https://api.github.com/users/lucaswerkmeister/orgs","repos_url":"https://api.github.com/users/lucaswerkmeister/repos","events_url":"https://api.github.com/users/lucaswerkmeister/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswerkmeister/received_events","type":"User","site_admin":false},"repo":{"id":33788037,"name":"highlight.js","full_name":"lucaswerkmeister/highlight.js","owner":{"login":"lucaswerkmeister","id":2346599,"avatar_url":"https://avatars.githubusercontent.com/u/2346599?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaswerkmeister","html_url":"https://github.com/lucaswerkmeister","followers_url":"https://api.github.com/users/lucaswerkmeister/followers","following_url":"https://api.github.com/users/lucaswerkmeister/following{/other_user}","gists_url":"https://api.github.com/users/lucaswerkmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswerkmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswerkmeister/subscriptions","organizations_url":"https://api.github.com/users/lucaswerkmeister/orgs","repos_url":"https://api.github.com/users/lucaswerkmeister/repos","events_url":"https://api.github.com/users/lucaswerkmeister/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswerkmeister/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lucaswerkmeister/highlight.js","description":"Javascript syntax highlighter","fork":true,"url":"https://api.github.com/repos/lucaswerkmeister/highlight.js","forks_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/forks","keys_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/teams","hooks_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/hooks","issue_events_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/issues/events{/number}","events_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/events","assignees_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/assignees{/user}","branches_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/branches{/branch}","tags_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/tags","blobs_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/statuses/{sha}","languages_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/languages","stargazers_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/stargazers","contributors_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/contributors","subscribers_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/subscribers","subscription_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/subscription","commits_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/contents/{+path}","compare_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/merges","archive_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/downloads","issues_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/issues{/number}","pulls_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/pulls{/number}","milestones_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/milestones{/number}","notifications_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/labels{/name}","releases_url":"https://api.github.com/repos/lucaswerkmeister/highlight.js/releases{/id}","created_at":"2015-04-11T18:52:52Z","updated_at":"2015-04-11T18:52:53Z","pushed_at":"2015-04-11T18:53:35Z","git_url":"git://github.com/lucaswerkmeister/highlight.js.git","ssh_url":"git@github.com:lucaswerkmeister/highlight.js.git","clone_url":"https://github.com/lucaswerkmeister/highlight.js.git","svn_url":"https://github.com/lucaswerkmeister/highlight.js","homepage":"https://highlightjs.org/","size":12271,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":0,"default_branch":"master"}},"base":{"label":"isagalaev:master","ref":"master","sha":"85345abae9ab6ebdb3ee2867a79080f30076c821","user":{"login":"isagalaev","id":99931,"avatar_url":"https://avatars.githubusercontent.com/u/99931?v=3","gravatar_id":"","url":"https://api.github.com/users/isagalaev","html_url":"https://github.com/isagalaev","followers_url":"https://api.github.com/users/isagalaev/followers","following_url":"https://api.github.com/users/isagalaev/following{/other_user}","gists_url":"https://api.github.com/users/isagalaev/gists{/gist_id}","starred_url":"https://api.github.com/users/isagalaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isagalaev/subscriptions","organizations_url":"https://api.github.com/users/isagalaev/orgs","repos_url":"https://api.github.com/users/isagalaev/repos","events_url":"https://api.github.com/users/isagalaev/events{/privacy}","received_events_url":"https://api.github.com/users/isagalaev/received_events","type":"User","site_admin":false},"repo":{"id":1213225,"name":"highlight.js","full_name":"isagalaev/highlight.js","owner":{"login":"isagalaev","id":99931,"avatar_url":"https://avatars.githubusercontent.com/u/99931?v=3","gravatar_id":"","url":"https://api.github.com/users/isagalaev","html_url":"https://github.com/isagalaev","followers_url":"https://api.github.com/users/isagalaev/followers","following_url":"https://api.github.com/users/isagalaev/following{/other_user}","gists_url":"https://api.github.com/users/isagalaev/gists{/gist_id}","starred_url":"https://api.github.com/users/isagalaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isagalaev/subscriptions","organizations_url":"https://api.github.com/users/isagalaev/orgs","repos_url":"https://api.github.com/users/isagalaev/repos","events_url":"https://api.github.com/users/isagalaev/events{/privacy}","received_events_url":"https://api.github.com/users/isagalaev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/isagalaev/highlight.js","description":"Javascript syntax highlighter","fork":false,"url":"https://api.github.com/repos/isagalaev/highlight.js","forks_url":"https://api.github.com/repos/isagalaev/highlight.js/forks","keys_url":"https://api.github.com/repos/isagalaev/highlight.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/isagalaev/highlight.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/isagalaev/highlight.js/teams","hooks_url":"https://api.github.com/repos/isagalaev/highlight.js/hooks","issue_events_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/events{/number}","events_url":"https://api.github.com/repos/isagalaev/highlight.js/events","assignees_url":"https://api.github.com/repos/isagalaev/highlight.js/assignees{/user}","branches_url":"https://api.github.com/repos/isagalaev/highlight.js/branches{/branch}","tags_url":"https://api.github.com/repos/isagalaev/highlight.js/tags","blobs_url":"https://api.github.com/repos/isagalaev/highlight.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/isagalaev/highlight.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/isagalaev/highlight.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/isagalaev/highlight.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/isagalaev/highlight.js/statuses/{sha}","languages_url":"https://api.github.com/repos/isagalaev/highlight.js/languages","stargazers_url":"https://api.github.com/repos/isagalaev/highlight.js/stargazers","contributors_url":"https://api.github.com/repos/isagalaev/highlight.js/contributors","subscribers_url":"https://api.github.com/repos/isagalaev/highlight.js/subscribers","subscription_url":"https://api.github.com/repos/isagalaev/highlight.js/subscription","commits_url":"https://api.github.com/repos/isagalaev/highlight.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/isagalaev/highlight.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/isagalaev/highlight.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/isagalaev/highlight.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/isagalaev/highlight.js/contents/{+path}","compare_url":"https://api.github.com/repos/isagalaev/highlight.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/isagalaev/highlight.js/merges","archive_url":"https://api.github.com/repos/isagalaev/highlight.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/isagalaev/highlight.js/downloads","issues_url":"https://api.github.com/repos/isagalaev/highlight.js/issues{/number}","pulls_url":"https://api.github.com/repos/isagalaev/highlight.js/pulls{/number}","milestones_url":"https://api.github.com/repos/isagalaev/highlight.js/milestones{/number}","notifications_url":"https://api.github.com/repos/isagalaev/highlight.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/isagalaev/highlight.js/labels{/name}","releases_url":"https://api.github.com/repos/isagalaev/highlight.js/releases{/id}","created_at":"2011-01-01T23:47:21Z","updated_at":"2015-04-12T06:57:11Z","pushed_at":"2015-04-11T19:07:20Z","git_url":"git://github.com/isagalaev/highlight.js.git","ssh_url":"git@github.com:isagalaev/highlight.js.git","clone_url":"https://github.com/isagalaev/highlight.js.git","svn_url":"https://github.com/isagalaev/highlight.js","homepage":"https://highlightjs.org/","size":12271,"stargazers_count":5058,"watchers_count":5058,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":872,"mirror_url":null,"open_issues_count":34,"forks":872,"open_issues":34,"watchers":5058,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/isagalaev/highlight.js/pulls/825"},"html":{"href":"https://github.com/isagalaev/highlight.js/pull/825"},"issue":{"href":"https://api.github.com/repos/isagalaev/highlight.js/issues/825"},"comments":{"href":"https://api.github.com/repos/isagalaev/highlight.js/issues/825/comments"},"review_comments":{"href":"https://api.github.com/repos/isagalaev/highlight.js/pulls/825/comments"},"review_comment":{"href":"https://api.github.com/repos/isagalaev/highlight.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/isagalaev/highlight.js/pulls/825/commits"},"statuses":{"href":"https://api.github.com/repos/isagalaev/highlight.js/statuses/9a652aaacf6c81a2564b6faa2b2185aba8145db3"}}}}