{"action":"created","issue":{"url":"https://api.github.com/repos/antlr/antlr4/issues/1002","labels_url":"https://api.github.com/repos/antlr/antlr4/issues/1002/labels{/name}","comments_url":"https://api.github.com/repos/antlr/antlr4/issues/1002/comments","events_url":"https://api.github.com/repos/antlr/antlr4/issues/1002/events","html_url":"https://github.com/antlr/antlr4/issues/1002","id":107488783,"number":1002,"title":"Ignore case new syntax","user":{"login":"KvanTTT","id":1150330,"avatar_url":"https://avatars.githubusercontent.com/u/1150330?v=3","gravatar_id":"","url":"https://api.github.com/users/KvanTTT","html_url":"https://github.com/KvanTTT","followers_url":"https://api.github.com/users/KvanTTT/followers","following_url":"https://api.github.com/users/KvanTTT/following{/other_user}","gists_url":"https://api.github.com/users/KvanTTT/gists{/gist_id}","starred_url":"https://api.github.com/users/KvanTTT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KvanTTT/subscriptions","organizations_url":"https://api.github.com/users/KvanTTT/orgs","repos_url":"https://api.github.com/users/KvanTTT/repos","events_url":"https://api.github.com/users/KvanTTT/events{/privacy}","received_events_url":"https://api.github.com/users/KvanTTT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-21T11:03:51Z","updated_at":"2015-09-26T08:02:02Z","closed_at":null,"body":"What do you think about new lexer command for case ignoring?\r\n\r\n```ANTLR\r\nProcedure: 'procedure' -> ignoreCase;\r\n```\r\n\r\nOr to use regex-like syntax (which gives more flexibility, for example ignore part of word):\r\n```ANTLR\r\nProcedure: '\\iprocedure\\-i';\r\nProcedure: '\\i' 'procedure' '\\-i';\r\n```\r\n\r\nNow I have to use the following not pretty syntax:\r\n```ANTLR\r\nProcedure: P R O C E D U R E;\r\nfragment A: [aA];\r\nfragment B: [bB];\r\nfragment C: [cC];\r\nfragment D: [dD];\r\nfragment E: [eE];\r\nfragment F: [fF];\r\nfragment G: [gG];\r\nfragment H: [hH];\r\nfragment I: [iI];\r\nfragment J: [jJ];\r\nfragment K: [kK];\r\nfragment L: [lL];\r\nfragment M: [mM];\r\nfragment N: [nN];\r\nfragment O: [oO];\r\nfragment P: [pP];\r\nfragment Q: [qQ];\r\nfragment R: [rR];\r\nfragment S: [sS];\r\nfragment T: [tT];\r\nfragment U: [uU];\r\nfragment V: [vV];\r\nfragment W: [wW];\r\nfragment X: [xX];\r\nfragment Y: [yY];\r\nfragment Z: [zZ];\r\n```\r\n\r\nThis feature especially important for case-insensivity languages, such as Pascal, PHP, etc.\r\n"},"comment":{"url":"https://api.github.com/repos/antlr/antlr4/issues/comments/143408810","html_url":"https://github.com/antlr/antlr4/issues/1002#issuecomment-143408810","issue_url":"https://api.github.com/repos/antlr/antlr4/issues/1002","id":143408810,"user":{"login":"jimidle","id":1309104,"avatar_url":"https://avatars.githubusercontent.com/u/1309104?v=3","gravatar_id":"","url":"https://api.github.com/users/jimidle","html_url":"https://github.com/jimidle","followers_url":"https://api.github.com/users/jimidle/followers","following_url":"https://api.github.com/users/jimidle/following{/other_user}","gists_url":"https://api.github.com/users/jimidle/gists{/gist_id}","starred_url":"https://api.github.com/users/jimidle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimidle/subscriptions","organizations_url":"https://api.github.com/users/jimidle/orgs","repos_url":"https://api.github.com/users/jimidle/repos","events_url":"https://api.github.com/users/jimidle/events{/privacy}","received_events_url":"https://api.github.com/users/jimidle/received_events","type":"User","site_admin":false},"created_at":"2015-09-26T08:02:02Z","updated_at":"2015-09-26T08:02:02Z","body":"I believe I have already put this in the public domain but of course your own needs may be different. \nHappy to share but here in Taiwan it is a public holiday so I will look again on Tuesday. \n\n\n\n\n\n\nOn Fri, Sep 25, 2015 at 3:30 PM -0700, \"Ivan Kochurkin\" <notifications@github.com> wrote:\n\n\n\n\n\n\n\n\n\n\n\n\n@jimidle , could you please show the grammar sample with your view of case insensitive tokens?\n\n\n\n—\nReply to this email directly or view it on GitHub."}}