{"action":"created","issue":{"url":"https://api.github.com/repos/SAP/chevrotain/issues/144","repository_url":"https://api.github.com/repos/SAP/chevrotain","labels_url":"https://api.github.com/repos/SAP/chevrotain/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/SAP/chevrotain/issues/144/comments","events_url":"https://api.github.com/repos/SAP/chevrotain/issues/144/events","html_url":"https://github.com/SAP/chevrotain/pull/144","id":140422375,"number":144,"title":"Human Readable Token Labels","user":{"login":"kevinastone","id":1234915,"avatar_url":"https://avatars.githubusercontent.com/u/1234915?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinastone","html_url":"https://github.com/kevinastone","followers_url":"https://api.github.com/users/kevinastone/followers","following_url":"https://api.github.com/users/kevinastone/following{/other_user}","gists_url":"https://api.github.com/users/kevinastone/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinastone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinastone/subscriptions","organizations_url":"https://api.github.com/users/kevinastone/orgs","repos_url":"https://api.github.com/users/kevinastone/repos","events_url":"https://api.github.com/users/kevinastone/events{/privacy}","received_events_url":"https://api.github.com/users/kevinastone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-12T22:25:57Z","updated_at":"2016-03-12T22:26:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SAP/chevrotain/pulls/144","html_url":"https://github.com/SAP/chevrotain/pull/144","diff_url":"https://github.com/SAP/chevrotain/pull/144.diff","patch_url":"https://github.com/SAP/chevrotain/pull/144.patch"},"body":"Specifying `LABEL` on an ES6 class or add it to an ES5 contstructor customizes how a token is showed in documentation.\r\n\r\n```\r\nclass Add extends Token {\r\n  static PATTERN = /\\+/;\r\n  static LABEL = '+';\r\n}\r\n```\r\n\r\n```\r\nvar Add = extendsToken('Add', '/\\+/');\r\nAdd.LABEL = '+';\r\n```"},"comment":{"url":"https://api.github.com/repos/SAP/chevrotain/issues/comments/195819355","html_url":"https://github.com/SAP/chevrotain/pull/144#issuecomment-195819355","issue_url":"https://api.github.com/repos/SAP/chevrotain/issues/144","id":195819355,"user":{"login":"kevinastone","id":1234915,"avatar_url":"https://avatars.githubusercontent.com/u/1234915?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinastone","html_url":"https://github.com/kevinastone","followers_url":"https://api.github.com/users/kevinastone/followers","following_url":"https://api.github.com/users/kevinastone/following{/other_user}","gists_url":"https://api.github.com/users/kevinastone/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinastone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinastone/subscriptions","organizations_url":"https://api.github.com/users/kevinastone/orgs","repos_url":"https://api.github.com/users/kevinastone/repos","events_url":"https://api.github.com/users/kevinastone/events{/privacy}","received_events_url":"https://api.github.com/users/kevinastone/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T22:26:36Z","updated_at":"2016-03-12T22:26:36Z","body":"Probably need to extend this further into error messages, etc.  But found it helpful to allow a customization for the token for more accurate diagramming:\r\n\r\n<img width=\"800\" alt=\"file----users-kstone-documents-atom-grammar-test-docs-diagrams html 20160312\" src=\"https://cloud.githubusercontent.com/assets/1234915/13725709/6aed6000-e85e-11e5-8831-8aefb3d69e23.png\">\r\n"}}