Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error #587

Open
nIxedoahz opened this issue Sep 13, 2023 · 1 comment
Open

error #587

nIxedoahz opened this issue Sep 13, 2023 · 1 comment

Comments

@nIxedoahz
Copy link

[\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

@Mightyjo
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants