{"action":"created","issue":{"url":"https://api.github.com/repos/jsbean/DNMKit/issues/108","labels_url":"https://api.github.com/repos/jsbean/DNMKit/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/jsbean/DNMKit/issues/108/comments","events_url":"https://api.github.com/repos/jsbean/DNMKit/issues/108/events","html_url":"https://github.com/jsbean/DNMKit/issues/108","id":119369742,"number":108,"title":"Syntax highlighter crashes if PerformerDeclaration starts at index == 0","user":{"login":"jsbean","id":7040073,"avatar_url":"https://avatars.githubusercontent.com/u/7040073?v=3","gravatar_id":"","url":"https://api.github.com/users/jsbean","html_url":"https://github.com/jsbean","followers_url":"https://api.github.com/users/jsbean/followers","following_url":"https://api.github.com/users/jsbean/following{/other_user}","gists_url":"https://api.github.com/users/jsbean/gists{/gist_id}","starred_url":"https://api.github.com/users/jsbean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsbean/subscriptions","organizations_url":"https://api.github.com/users/jsbean/orgs","repos_url":"https://api.github.com/users/jsbean/repos","events_url":"https://api.github.com/users/jsbean/events{/privacy}","received_events_url":"https://api.github.com/users/jsbean/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jsbean/DNMKit/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/jsbean/DNMKit/labels/shorthand","name":"shorthand","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-29T16:42:01Z","updated_at":"2015-11-29T20:22:36Z","closed_at":null,"body":"At first, it thinks it is a `PerformerID`, because it's just a letter character string. Not sure if this is a big deal in and of itself. The settings for the `PerformerID` highlighting cause the index to be too far forward, and we get the error:\r\n\r\n`2015-11-29 11:41:31.585 DNM Text Editor[8472:333832] An uncaught exception was raised\r\n2015-11-29 11:41:31.585 DNM Text Editor[8472:333832] NSMutableRLEArray objectAtIndex:effectiveRange:: Out of bounds`\r\n\r\nOnce it gets to the `:`, it figures out we are in `PerformerDeclaraction` land. \r\n\r\n<img width=\"126\" alt=\"screen shot 2015-11-29 at 11 38 40 am\" src=\"https://cloud.githubusercontent.com/assets/7040073/11458433/de5124dc-968d-11e5-827f-13a913b598f6.png\">"},"comment":{"url":"https://api.github.com/repos/jsbean/DNMKit/issues/comments/160463880","html_url":"https://github.com/jsbean/DNMKit/issues/108#issuecomment-160463880","issue_url":"https://api.github.com/repos/jsbean/DNMKit/issues/108","id":160463880,"user":{"login":"jsbean","id":7040073,"avatar_url":"https://avatars.githubusercontent.com/u/7040073?v=3","gravatar_id":"","url":"https://api.github.com/users/jsbean","html_url":"https://github.com/jsbean","followers_url":"https://api.github.com/users/jsbean/followers","following_url":"https://api.github.com/users/jsbean/following{/other_user}","gists_url":"https://api.github.com/users/jsbean/gists{/gist_id}","starred_url":"https://api.github.com/users/jsbean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsbean/subscriptions","organizations_url":"https://api.github.com/users/jsbean/orgs","repos_url":"https://api.github.com/users/jsbean/repos","events_url":"https://api.github.com/users/jsbean/events{/privacy}","received_events_url":"https://api.github.com/users/jsbean/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T20:22:36Z","updated_at":"2015-11-29T20:22:36Z","body":"Current workaround: hit `enter` once and then go back, so that there is a `/n` after the current `selectedRange`."}}