{"action":"created","issue":{"url":"https://api.github.com/repos/zaach/jison/issues/265","labels_url":"https://api.github.com/repos/zaach/jison/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/zaach/jison/issues/265/comments","events_url":"https://api.github.com/repos/zaach/jison/issues/265/events","html_url":"https://github.com/zaach/jison/issues/265","id":58474404,"number":265,"title":"Documentation out of date / incorrect","user":{"login":"chbrown","id":360279,"avatar_url":"https://avatars.githubusercontent.com/u/360279?v=3","gravatar_id":"","url":"https://api.github.com/users/chbrown","html_url":"https://github.com/chbrown","followers_url":"https://api.github.com/users/chbrown/followers","following_url":"https://api.github.com/users/chbrown/following{/other_user}","gists_url":"https://api.github.com/users/chbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/chbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chbrown/subscriptions","organizations_url":"https://api.github.com/users/chbrown/orgs","repos_url":"https://api.github.com/users/chbrown/repos","events_url":"https://api.github.com/users/chbrown/events{/privacy}","received_events_url":"https://api.github.com/users/chbrown/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-21T20:50:30Z","updated_at":"2015-03-01T00:29:47Z","closed_at":null,"body":"There's an example in [the documentation](http://zaach.github.io/jison/docs/#lexical-analysis), right below the paragraph that reads:\r\n\r\n> Actions that span multiple lines should be surrounded by braces:\r\n\r\nBut the braces shown are `%{` and `%}` braces. Actually, Jison expects plain `{` and `}` braces, and throws an error if you use the percent-prefixed kind:\r\n\r\n> ```\r\ncase 3:%{\r\n       ^\r\nSyntaxError: Unexpected token %\r\n```\r\n\r\nThe braces in that and the following example should be replaced by normal `{` / `}` braces."},"comment":{"url":"https://api.github.com/repos/zaach/jison/issues/comments/76560964","html_url":"https://github.com/zaach/jison/issues/265#issuecomment-76560964","issue_url":"https://api.github.com/repos/zaach/jison/issues/265","id":76560964,"user":{"login":"nolanlawson","id":283842,"avatar_url":"https://avatars.githubusercontent.com/u/283842?v=3","gravatar_id":"","url":"https://api.github.com/users/nolanlawson","html_url":"https://github.com/nolanlawson","followers_url":"https://api.github.com/users/nolanlawson/followers","following_url":"https://api.github.com/users/nolanlawson/following{/other_user}","gists_url":"https://api.github.com/users/nolanlawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nolanlawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolanlawson/subscriptions","organizations_url":"https://api.github.com/users/nolanlawson/orgs","repos_url":"https://api.github.com/users/nolanlawson/repos","events_url":"https://api.github.com/users/nolanlawson/events{/privacy}","received_events_url":"https://api.github.com/users/nolanlawson/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T00:29:47Z","updated_at":"2015-03-01T00:29:47Z","body":"I can confirm that, with the latest version of Jison, the `%{ }%` format does not work, but the `{ }` format does. With Jison 0.4.13 (which I assume the site is using), both formats are accepted. (Using the \"ZOMG\" example.)\r\n\r\nIt feels like this is a bug in Jison rather than a bug in the docs."}}