diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-09-07 08:35:09 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-09-07 08:35:09 +0200 |
commit | 2a5cb6f62159e345441046028ff70bc9e2906b28 (patch) | |
tree | 1345068547d9e4dc08c818751600e0e216960673 /lexer | |
parent | 7c1ecb470773843d72a49adb462becb05af299df (diff) |
Alias 'color' property name to 'text-color'
Diffstat (limited to 'lexer')
-rw-r--r-- | lexer/theme-lexer.l | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l index 1eb47aec..5ea7e753 100644 --- a/lexer/theme-lexer.l +++ b/lexer/theme-lexer.l @@ -395,6 +395,8 @@ if ( queue == NULL ){ <NAMESTR>\.|{WHITESPACE} { return T_NSEP; } <NAMESTR>,{WHITESPACE}* { return T_SSEP; } + /* Alias color to text-color */ +<SECTION>"color" { yylval->sval = g_strdup("text-color"); return T_PROP_NAME;} <SECTION>{WORD} { yylval->sval = g_strdup(yytext); return T_PROP_NAME;} <NAMESTR>{WORD} { yylval->sval = g_strdup(yytext); return T_NAME_ELEMENT;} |