westes / flex

The Fast Lexical Analyzer - scanner generator for lexing in C and C++
Other
3.51k stars 528 forks source link

Cannot match non-ASCII characters #634

Open tianhuzong opened 4 months ago

tianhuzong commented 4 months ago
\"[\u0000-\U10FFFF]*\"     { printf("line%d  type:STRING,value:%s\n", yylineno, yytext); }

input :"A" output:line1 type:STRING,value:"A"

input:"你好" but nothing is output

agvxov commented 1 month ago

It's articulated here much more nicely than i could do so myself: https://stackoverflow.com/questions/9611682/flexlexer-support-for-unicode Would you please close this ticket?