diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-12-19 17:48:20 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-12-19 17:48:20 +0100 |
commit | be3ce75f5dcb977e2e7c1d05824e4c48b3b9b00c (patch) | |
tree | 267cb4e786047065b57bf0a15f088f5b4f5b6bbb | |
parent | 7fa4c164ab753800229575b36fafd63b4e65b937 (diff) |
Make parsing of strings more flexible.
- Make use of building expressions.
-rw-r--r-- | lexer/theme-lexer.l | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l index aa1841e1..0ae8315f 100644 --- a/lexer/theme-lexer.l +++ b/lexer/theme-lexer.l @@ -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 |