{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/3916","labels_url":"https://api.github.com/repos/neovim/neovim/issues/3916/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/3916/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/3916/events","html_url":"https://github.com/neovim/neovim/pull/3916","id":124315686,"number":3916,"title":"Add support for binary numbers","user":{"login":"uxcn","id":3147166,"avatar_url":"https://avatars.githubusercontent.com/u/3147166?v=3","gravatar_id":"","url":"https://api.github.com/users/uxcn","html_url":"https://github.com/uxcn","followers_url":"https://api.github.com/users/uxcn/followers","following_url":"https://api.github.com/users/uxcn/following{/other_user}","gists_url":"https://api.github.com/users/uxcn/gists{/gist_id}","starred_url":"https://api.github.com/users/uxcn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uxcn/subscriptions","organizations_url":"https://api.github.com/users/uxcn/orgs","repos_url":"https://api.github.com/users/uxcn/repos","events_url":"https://api.github.com/users/uxcn/events{/privacy}","received_events_url":"https://api.github.com/users/uxcn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-12-30T07:44:21Z","updated_at":"2016-01-15T19:38:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/3916","html_url":"https://github.com/neovim/neovim/pull/3916","diff_url":"https://github.com/neovim/neovim/pull/3916.diff","patch_url":"https://github.com/neovim/neovim/pull/3916.patch"},"body":"I submitted a version of this patch to the Vim mailing list, which I'm still hoping to get feedback on.  I'd like to see if it might also be useful for NeoVim.\r\n\r\nSince a number of languages have had or recently added support for binary encoded numbers  (Python, Ruby, Java, C/C++, etc...), it seemed reasonable to add native support in Vim/NeoVim.  Obviously there has already been support for octal and hexadecimal.\r\n\r\nA quick summary of what's added...\r\n\r\n* bin nrformat (default)\r\n* prefix parsing (0b, 0B)\r\n* value sort (:sort b)\r\n* increment/decrement (^A, ^X)\r\n* str2nr (base 2)\r\n* binary encodings in VimL (e.g. 0b101)\r\n* other miscellany (spell check, documentation, tests, and so on...)\r\n\r\nI tried to avoid changing anything that wasn't strictly related to binary support.  If there are any issues with the patch, please let me know.  Note, there are a couple slightly thorny scenarios which I added tests for."},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/172063478","html_url":"https://github.com/neovim/neovim/pull/3916#issuecomment-172063478","issue_url":"https://api.github.com/repos/neovim/neovim/issues/3916","id":172063478,"user":{"login":"ZyX-I","id":322097,"avatar_url":"https://avatars.githubusercontent.com/u/322097?v=3","gravatar_id":"","url":"https://api.github.com/users/ZyX-I","html_url":"https://github.com/ZyX-I","followers_url":"https://api.github.com/users/ZyX-I/followers","following_url":"https://api.github.com/users/ZyX-I/following{/other_user}","gists_url":"https://api.github.com/users/ZyX-I/gists{/gist_id}","starred_url":"https://api.github.com/users/ZyX-I/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZyX-I/subscriptions","organizations_url":"https://api.github.com/users/ZyX-I/orgs","repos_url":"https://api.github.com/users/ZyX-I/repos","events_url":"https://api.github.com/users/ZyX-I/events{/privacy}","received_events_url":"https://api.github.com/users/ZyX-I/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T19:38:52Z","updated_at":"2016-01-15T19:38:52Z","body":"@uxcn Comment regarding ascii_isbdigit is still applicable."}}