Is there a way to reject case insensitive keywords?

Currently, I end up doing this:

lexical syntax

    NAME = [a-zA-Z][a-zA-Z0-9\_]*
    NAME = [Ss][Ee][Ll][Ee][Cc][Tt] {reject}

But I’m looking for something like this:

lexical syntax

    NAME = [a-zA-Z][a-zA-Z0-9\_]*
    NAME = "select" {reject, case-insensitive}
Submitted by Oskar van Rest on 19 May 2016 at 23:14

On 20 May 2016 at 08:04 Eduardo Amorim commented:

Try

NAME = 'select' {reject}

Not sure, but that should probably work.


On 20 May 2016 at 20:20 Oskar van Rest commented:

Thanks, it worked!


On 20 May 2016 at 20:20 Oskar van Rest closed this issue.

Log in to post comments