mirror of
https://github.com/lbonn/rofi
synced 2024-11-26 22:00:20 +00:00
Add UTF8 string support to lex (I hope)
This commit is contained in:
parent
0b03fc98ff
commit
5814478723
1 changed files with 13 additions and 1 deletions
|
@ -100,9 +100,21 @@ static char * rofi_theme_parse_prepare_file ( const char *file, const char *pare
|
||||||
yylloc->first_column = yylloc->last_column;\
|
yylloc->first_column = yylloc->last_column;\
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
ASC [\x00-\x7f]
|
||||||
|
ASCN [\x00-\t\v-\x7f]
|
||||||
|
U [\x80-\xbf]
|
||||||
|
U2 [\xc2-\xdf]
|
||||||
|
U3 [\xe0-\xef]
|
||||||
|
U4 [\xf0-\xf4]
|
||||||
|
|
||||||
|
// UANY {ASC}|{U2}{U}|{U3}{U}{U}|{U4}{U}{U}{U}
|
||||||
|
UANYN {ASCN}|{U2}{U}|{U3}{U}{U}|{U4}{U}{U}{U}
|
||||||
|
// UONLY {U2}{U}|{U3}{U}{U}|{U4}{U}{U}{U}
|
||||||
|
|
||||||
WHITESPACE [[:blank:]]
|
WHITESPACE [[:blank:]]
|
||||||
WORD [[:alnum:]-]+
|
WORD [[:alnum:]-]+
|
||||||
STRING [[:print:]]+
|
STRING {UANYN}+
|
||||||
HEX [[:xdigit:]]
|
HEX [[:xdigit:]]
|
||||||
NUMBER [[:digit:]]
|
NUMBER [[:digit:]]
|
||||||
PNNUMBER [-+]?[[:digit:]]+
|
PNNUMBER [-+]?[[:digit:]]+
|
||||||
|
|
Loading…
Reference in a new issue