westes / flex

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

Cannot match non-ASCII characters #634

Open tianhuzong opened 8 months ago

tianhuzong commented 8 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 5 months 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?