flex icon indicating copy to clipboard operation
flex copied to clipboard

chinese input to lexer?

Open nIxedoahz opened this issue 1 year ago • 1 comments

How do I support Chinese string matching

nIxedoahz avatar Mar 03 '23 08:03 nIxedoahz

If you encode your Chinese characters in UTF-8 most features will just work. Character classes (i.e. [aAcC-_] will not work, though. They will treat each byte of the code point as a separate character instead of treating them as a multibyte sequence.

You can achieve something similar to character classes using the alternation operator (e.g. "#!" | "?!").

Mightyjo avatar Mar 08 '23 02:03 Mightyjo