1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Make parsing of strings more flexible.

- Make use of building expressions.
This commit is contained in:
Dave Davenport 2016-12-19 17:48:20 +01:00
parent 7fa4c164ab
commit be3ce75f5d

View file

@ -19,11 +19,11 @@ GQueue *queue = NULL;
yylloc->first_line = yylloc->last_line; yylloc->first_column = yylloc->last_column;\
}
%}
WHITESPACE [ \t]
WORD [_\-a-zA-Z0-9]+
STRING [ \t_\-a-zA-Z0-9]+
HEX [0-9a-fA-F]
NUMBER [0-9]
WHITESPACE [[:space:]]
WORD [[:alnum:]-]+
STRING [[:print:]]+
HEX [[:xdigit:]]
NUMBER [[:digit:]]
%x PROPERTIES
%x NAMESTR