{"action":"created","issue":{"url":"https://api.github.com/repos/sublimehq/Packages/issues/1259","repository_url":"https://api.github.com/repos/sublimehq/Packages","labels_url":"https://api.github.com/repos/sublimehq/Packages/issues/1259/labels{/name}","comments_url":"https://api.github.com/repos/sublimehq/Packages/issues/1259/comments","events_url":"https://api.github.com/repos/sublimehq/Packages/issues/1259/events","html_url":"https://github.com/sublimehq/Packages/pull/1259","id":268067192,"number":1259,"title":"[Clojure] syntax rework","user":{"login":"Mitranim","id":4263831,"avatar_url":"https://avatars0.githubusercontent.com/u/4263831?v=4","gravatar_id":"","url":"https://api.github.com/users/Mitranim","html_url":"https://github.com/Mitranim","followers_url":"https://api.github.com/users/Mitranim/followers","following_url":"https://api.github.com/users/Mitranim/following{/other_user}","gists_url":"https://api.github.com/users/Mitranim/gists{/gist_id}","starred_url":"https://api.github.com/users/Mitranim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mitranim/subscriptions","organizations_url":"https://api.github.com/users/Mitranim/orgs","repos_url":"https://api.github.com/users/Mitranim/repos","events_url":"https://api.github.com/users/Mitranim/events{/privacy}","received_events_url":"https://api.github.com/users/Mitranim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-10-24T15:00:36Z","updated_at":"2017-10-26T12:40:48Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/sublimehq/Packages/pulls/1259","html_url":"https://github.com/sublimehq/Packages/pull/1259","diff_url":"https://github.com/sublimehq/Packages/pull/1259.diff","patch_url":"https://github.com/sublimehq/Packages/pull/1259.patch"},"body":"This PR is a complete rework of the Clojure syntax.\r\n\r\nImprovements:\r\n\r\n  * The syntax structure is modeled after the AST and the Clojure reader. Should\r\n    handle any formatting, regardless of whitespace and indentation quirks.\r\n\r\n  * No unnecessary special cases. Simple and consistent rules. User-defined\r\n    syntax should look and feel the same as standard syntax.\r\n\r\n  * Works in root scope\r\n\r\n  * Much better at handling literals such as numbers, keywords, etc\r\n\r\n  * Works for custom defs, e.g. `defroute`\r\n\r\n  * Correctly declares `definterface`, `defprotocol`, `deftype`, `defrecord` types\r\n\r\n  * Correctly highlights methods in `definterface`, `defprotocol`, `deftype`, `defrecord`\r\n\r\n  * Correctly declares functions defined by `defprotocol`\r\n\r\n  * Correctly declares names in the presence of metadata, whitespace, comments\r\n\r\n  * Correctly handles `defmulti` and `defmethod`\r\n\r\n  * Doesn't declare `declare` (noise)\r\n\r\n  * Highlights mismatched brackets, helping with balancing\r\n\r\n  * Consistent highlighting of function calls\r\n\r\n  * ≈ 4 times smaller\r\n\r\n  * ≈ 6 times faster\r\n\r\nDoesn't detect function parameters and local bindings. I'm not sold on supporting 8+ special forms, each with their own quirks, in a language with macros. It immediately breaks when a user introduces their own variation ([example](https://gist.github.com/Mitranim/148f0a0b51f36ef6a2cd3a0996dc7104) of a slightly different `let` I use in practice). Suggestions are welcome.\r\n\r\nWould appreciate review."},"comment":{"url":"https://api.github.com/repos/sublimehq/Packages/issues/comments/339652597","html_url":"https://github.com/sublimehq/Packages/pull/1259#issuecomment-339652597","issue_url":"https://api.github.com/repos/sublimehq/Packages/issues/1259","id":339652597,"user":{"login":"jrappen","id":8577450,"avatar_url":"https://avatars2.githubusercontent.com/u/8577450?v=4","gravatar_id":"","url":"https://api.github.com/users/jrappen","html_url":"https://github.com/jrappen","followers_url":"https://api.github.com/users/jrappen/followers","following_url":"https://api.github.com/users/jrappen/following{/other_user}","gists_url":"https://api.github.com/users/jrappen/gists{/gist_id}","starred_url":"https://api.github.com/users/jrappen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrappen/subscriptions","organizations_url":"https://api.github.com/users/jrappen/orgs","repos_url":"https://api.github.com/users/jrappen/repos","events_url":"https://api.github.com/users/jrappen/events{/privacy}","received_events_url":"https://api.github.com/users/jrappen/received_events","type":"User","site_admin":false},"created_at":"2017-10-26T12:40:48Z","updated_at":"2017-10-26T12:40:48Z","author_association":"CONTRIBUTOR","body":"@Mitranim I forgot to mention `showInIndexedReferenceList` (Build 3145 or later)."}}
{"actor":{"display_login":"jrappen"}}