tokenizer icon indicating copy to clipboard operation
tokenizer copied to clipboard

Specify case insensitive matching of token upon definition

Open ktsivkov opened this issue 11 months ago • 1 comments

First I want to say that I really like the api of this library, it is very easy to use.

What I want to propose:

Would be great if we could specify specific tokens to be matched case insensitive. Lets say I have a token called WHERE, would be great if it also matched where. i.e. Tokenizer.DefineTokens(TOKEN_TYPE, []string{"WHERE"}, true) or Tokenizer.DefineInsensitiveTokens(TOKEN_TYPE, []string{"WHERE"})

ktsivkov avatar Mar 07 '24 10:03 ktsivkov

I think i's good idea. I'm looking at how to implement the idea

bzick avatar Apr 03 '24 10:04 bzick