summaryrefslogtreecommitdiffstats
path: root/lexer
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-06-07 20:41:43 +0200
committerDave Davenport <qball@gmpclient.org>2017-06-07 20:41:43 +0200
commit47c75186562b11216d7f36dd5bbf1e00bb775aea (patch)
tree7e186d3563ffabfc5f353c488b469b43ceddc283 /lexer
parent9fe67c1822887d4ef0a00175513b5e4660b84283 (diff)
Fix parsing old themes from rofi-themes repo.
Diffstat (limited to 'lexer')
-rw-r--r--lexer/theme-lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l
index 8e20ee89..3831d26e 100644
--- a/lexer/theme-lexer.l
+++ b/lexer/theme-lexer.l
@@ -448,7 +448,7 @@ if ( queue == NULL ){
yylval->colorval.blue = rofi_theme_parse_convert_hex(yytext[3],yytext[3]);
return T_COLOR;
}
-<PROPERTIES>argb:{HEX}{8} {
+<PROPERTIES>argb:{HEX}{7,8} {
yylval->colorval.alpha = rofi_theme_parse_convert_hex(yytext[5],yytext[6]);
yylval->colorval.red = rofi_theme_parse_convert_hex(yytext[7],yytext[8]);
yylval->colorval.green = rofi_theme_parse_convert_hex(yytext[9],yytext[10]);