{"action":"created","issue":{"url":"https://api.github.com/repos/antlr/antlr4/issues/1299","repository_url":"https://api.github.com/repos/antlr/antlr4","labels_url":"https://api.github.com/repos/antlr/antlr4/issues/1299/labels{/name}","comments_url":"https://api.github.com/repos/antlr/antlr4/issues/1299/comments","events_url":"https://api.github.com/repos/antlr/antlr4/issues/1299/events","html_url":"https://github.com/antlr/antlr4/issues/1299","id":180785184,"number":1299,"title":"Matched tokens being marked as error","user":{"login":"marcospassos","id":943036,"avatar_url":"https://avatars.githubusercontent.com/u/943036?v=3","gravatar_id":"","url":"https://api.github.com/users/marcospassos","html_url":"https://github.com/marcospassos","followers_url":"https://api.github.com/users/marcospassos/followers","following_url":"https://api.github.com/users/marcospassos/following{/other_user}","gists_url":"https://api.github.com/users/marcospassos/gists{/gist_id}","starred_url":"https://api.github.com/users/marcospassos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcospassos/subscriptions","organizations_url":"https://api.github.com/users/marcospassos/orgs","repos_url":"https://api.github.com/users/marcospassos/repos","events_url":"https://api.github.com/users/marcospassos/events{/privacy}","received_events_url":"https://api.github.com/users/marcospassos/received_events","type":"User","site_admin":false},"labels":[{"id":237258,"url":"https://api.github.com/repos/antlr/antlr4/labels/comp:runtime","name":"comp:runtime","color":"ededed","default":false},{"id":227770,"url":"https://api.github.com/repos/antlr/antlr4/labels/error-handling","name":"error-handling","color":"ededed","default":false},{"id":227767,"url":"https://api.github.com/repos/antlr/antlr4/labels/trees-contexts","name":"trees-contexts","color":"444444","default":false},{"id":237266,"url":"https://api.github.com/repos/antlr/antlr4/labels/type:bug","name":"type:bug","color":"e0b5b3","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/antlr/antlr4/milestones/15","html_url":"https://github.com/antlr/antlr4/milestone/15","labels_url":"https://api.github.com/repos/antlr/antlr4/milestones/15/labels","id":2116534,"number":15,"title":"4.6","description":null,"creator":{"login":"parrt","id":178777,"avatar_url":"https://avatars.githubusercontent.com/u/178777?v=3","gravatar_id":"","url":"https://api.github.com/users/parrt","html_url":"https://github.com/parrt","followers_url":"https://api.github.com/users/parrt/followers","following_url":"https://api.github.com/users/parrt/following{/other_user}","gists_url":"https://api.github.com/users/parrt/gists{/gist_id}","starred_url":"https://api.github.com/users/parrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parrt/subscriptions","organizations_url":"https://api.github.com/users/parrt/orgs","repos_url":"https://api.github.com/users/parrt/repos","events_url":"https://api.github.com/users/parrt/events{/privacy}","received_events_url":"https://api.github.com/users/parrt/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":127,"state":"open","created_at":"2016-11-05T16:55:02Z","updated_at":"2016-12-12T02:08:02Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2016-10-04T01:14:50Z","updated_at":"2016-12-12T02:13:50Z","closed_at":null,"body":"I found a case where the parser is marking matched tokens found inside error nodes as an error. For instance, given the malformed expression `1 * 2 +++`, this is the resulting tree:\n\n![antlr4_parse_tree](https://cloud.githubusercontent.com/assets/943036/19059272/fbd9c52a-89b4-11e6-96f1-58314aa28204.png)\n\nHowever, it's the expected tree:\n\n![image](https://cloud.githubusercontent.com/assets/943036/19059287/224132f2-89b5-11e6-951c-0e456d91f5ce.png)\n\nNotice that the operators `+` are being marked as an error in the first tree, although they have being recognized as operators. \n\nIt worth noting that the former tree was generated using the TestRig, while the latter is a screenshot of the tree generated in the IntelliJ plugin. This issue is most likely related to antlr/intellij-plugin-v4#180.\n"},"comment":{"url":"https://api.github.com/repos/antlr/antlr4/issues/comments/266328558","html_url":"https://github.com/antlr/antlr4/issues/1299#issuecomment-266328558","issue_url":"https://api.github.com/repos/antlr/antlr4/issues/1299","id":266328558,"user":{"login":"marcospassos","id":943036,"avatar_url":"https://avatars.githubusercontent.com/u/943036?v=3","gravatar_id":"","url":"https://api.github.com/users/marcospassos","html_url":"https://github.com/marcospassos","followers_url":"https://api.github.com/users/marcospassos/followers","following_url":"https://api.github.com/users/marcospassos/following{/other_user}","gists_url":"https://api.github.com/users/marcospassos/gists{/gist_id}","starred_url":"https://api.github.com/users/marcospassos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcospassos/subscriptions","organizations_url":"https://api.github.com/users/marcospassos/orgs","repos_url":"https://api.github.com/users/marcospassos/repos","events_url":"https://api.github.com/users/marcospassos/events{/privacy}","received_events_url":"https://api.github.com/users/marcospassos/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T02:13:50Z","updated_at":"2016-12-12T02:13:50Z","body":"Again, the interpreter rocks 💯 "}}
{"actor":{"display_login":"marcospassos"}}