flex icon indicating copy to clipboard operation
flex copied to clipboard

error

Open nIxedoahz opened this issue 1 year ago • 1 comments

[\u4e00-\u9fa5]+ { yylval->sval = strdup(yytext); return string; }

error: warning that the character range [0-u] is ambiguous in a scanner where case is not required

nIxedoahz avatar Sep 13 '23 10:09 nIxedoahz

Flex regex doesn't support Unicode escape sequences. You can construct rules or patterns for code points a byte at a time using hex escape sequences.

The range character class constructor assumes the operands are bytes, so it's not going to work correctly with wide characters. That's what you're seeing.

Mightyjo avatar Sep 13 '23 13:09 Mightyjo