{"action":"created","issue":{"url":"https://api.github.com/repos/sublimehq/Packages/issues/40","labels_url":"https://api.github.com/repos/sublimehq/Packages/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/sublimehq/Packages/issues/40/comments","events_url":"https://api.github.com/repos/sublimehq/Packages/issues/40/events","html_url":"https://github.com/sublimehq/Packages/issues/40","id":92450211,"number":40,"title":"The D Syntax Highlighter Does Not Recognize A Number Of Keywords","user":{"login":"JackStouffer","id":680068,"avatar_url":"https://avatars.githubusercontent.com/u/680068?v=3","gravatar_id":"","url":"https://api.github.com/users/JackStouffer","html_url":"https://github.com/JackStouffer","followers_url":"https://api.github.com/users/JackStouffer/followers","following_url":"https://api.github.com/users/JackStouffer/following{/other_user}","gists_url":"https://api.github.com/users/JackStouffer/gists{/gist_id}","starred_url":"https://api.github.com/users/JackStouffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackStouffer/subscriptions","organizations_url":"https://api.github.com/users/JackStouffer/orgs","repos_url":"https://api.github.com/users/JackStouffer/repos","events_url":"https://api.github.com/users/JackStouffer/events{/privacy}","received_events_url":"https://api.github.com/users/JackStouffer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-01T18:10:44Z","updated_at":"2016-01-13T20:47:09Z","closed_at":null,"body":"Many keywords in D are not recognized by the default D syntax highlighter and are displayed as regular text. Here is a list of all of the keywords that I have encountered that are not recognized:\r\n\r\n* string\r\n* shared\r\n* __gshared\r\n* ref\r\n* immutable\r\n* @safe\r\n* @property\r\n* @trusted\r\n* @system\r\n* @nogc\r\n* pure\r\n* nothrow\r\n* ~~assert~~\r\n\r\n~~While the last one is technically a function, the Python highlighter recognizes the assert statement and it would be nice if it was in D as well.~~\r\n\r\nAlso, it does not recognize long literals like `1_000_000_000` as numbers."},"comment":{"url":"https://api.github.com/repos/sublimehq/Packages/issues/comments/171427552","html_url":"https://github.com/sublimehq/Packages/issues/40#issuecomment-171427552","issue_url":"https://api.github.com/repos/sublimehq/Packages/issues/40","id":171427552,"user":{"login":"wbond","id":41734,"avatar_url":"https://avatars.githubusercontent.com/u/41734?v=3","gravatar_id":"","url":"https://api.github.com/users/wbond","html_url":"https://github.com/wbond","followers_url":"https://api.github.com/users/wbond/followers","following_url":"https://api.github.com/users/wbond/following{/other_user}","gists_url":"https://api.github.com/users/wbond/gists{/gist_id}","starred_url":"https://api.github.com/users/wbond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbond/subscriptions","organizations_url":"https://api.github.com/users/wbond/orgs","repos_url":"https://api.github.com/users/wbond/repos","events_url":"https://api.github.com/users/wbond/events{/privacy}","received_events_url":"https://api.github.com/users/wbond/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T20:47:09Z","updated_at":"2016-01-13T20:47:09Z","body":"@JackStouffer\r\n\r\nAs I discovered while looking into #112, the D syntax is rather poor. In addition to the keywords you've found, the detection of methods gets tripped up on `typeof()` and `const()`. Additionally, in some situations `else if ()` is detected as a method definition.\r\n\r\nI spent a little time working around some of those issues, however I haven't worked in D very much, so I'm not a very good candidate for making extensive changes.\r\n\r\nIf you are interested in contributing to the syntax, I can post my current tweaks. Ideally changes should include a test file to ensure we don't regress over time. Here is some more info about the format: http://www.sublimetext.com/docs/3/syntax.html."}}