{"action":"created","issue":{"url":"https://api.github.com/repos/orangeduck/mpc/issues/53","repository_url":"https://api.github.com/repos/orangeduck/mpc","labels_url":"https://api.github.com/repos/orangeduck/mpc/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/orangeduck/mpc/issues/53/comments","events_url":"https://api.github.com/repos/orangeduck/mpc/issues/53/events","html_url":"https://github.com/orangeduck/mpc/issues/53","id":156172869,"number":53,"title":"Ignoring contents of lines that aren't recognized","user":{"login":"cmaughan","id":120447,"avatar_url":"https://avatars.githubusercontent.com/u/120447?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaughan","html_url":"https://github.com/cmaughan","followers_url":"https://api.github.com/users/cmaughan/followers","following_url":"https://api.github.com/users/cmaughan/following{/other_user}","gists_url":"https://api.github.com/users/cmaughan/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaughan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaughan/subscriptions","organizations_url":"https://api.github.com/users/cmaughan/orgs","repos_url":"https://api.github.com/users/cmaughan/repos","events_url":"https://api.github.com/users/cmaughan/events{/privacy}","received_events_url":"https://api.github.com/users/cmaughan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-05-22T21:07:33Z","updated_at":"2016-05-25T18:46:21Z","closed_at":null,"body":"How would you ignore content that isn't recognized by a rule?\r\nSupposing I have something like this:\r\nstring : /\"(.|[^\"])*\"/ ;\r\nlang : /^/ <string> /$/\r\n\r\nThis should recognize quoted strings, but would fail on anything else.  So how to define the language such that it collects or discards anything that isn't a string?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/orangeduck/mpc/issues/comments/221669423","html_url":"https://github.com/orangeduck/mpc/issues/53#issuecomment-221669423","issue_url":"https://api.github.com/repos/orangeduck/mpc/issues/53","id":221669423,"user":{"login":"cmaughan","id":120447,"avatar_url":"https://avatars.githubusercontent.com/u/120447?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaughan","html_url":"https://github.com/cmaughan","followers_url":"https://api.github.com/users/cmaughan/followers","following_url":"https://api.github.com/users/cmaughan/following{/other_user}","gists_url":"https://api.github.com/users/cmaughan/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaughan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaughan/subscriptions","organizations_url":"https://api.github.com/users/cmaughan/orgs","repos_url":"https://api.github.com/users/cmaughan/repos","events_url":"https://api.github.com/users/cmaughan/events{/privacy}","received_events_url":"https://api.github.com/users/cmaughan/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T18:46:21Z","updated_at":"2016-05-25T18:46:21Z","body":"Does this help?\r\nI just tried creating a recognizer for \"#line\" and referencing it in the linepragma line...\r\n\r\n`\r\nauto line = mpc_new(\"line\");\r\nmpc_define(line, mpc_oneof(\"#line\"));\r\n\r\n    mpca_lang(MPCA_LANG_PREDICTIVE,\r\n        R\"(\r\n          number                : /[0-9]+/ ;\r\n          quoted_string         : /\"(\\\\.|[^\"])*\"/ ;\r\n          linepragma            : <line> <number> <quoted_string>;\r\n          parser                    : /^/ (<linepragma>)* /$/ ;\r\n        )\",\r\n        ident, line, number, quoted_string, linepragma, parser, NULL);\r\n`\r\n"}}
{"actor":{"display_login":"cmaughan"}}