summaryrefslogtreecommitdiffstats
path: root/lexer
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-09-07 08:35:09 +0200
committerDave Davenport <qball@gmpclient.org>2017-09-07 08:35:09 +0200
commit2a5cb6f62159e345441046028ff70bc9e2906b28 (patch)
tree1345068547d9e4dc08c818751600e0e216960673 /lexer
parent7c1ecb470773843d72a49adb462becb05af299df (diff)
Alias 'color' property name to 'text-color'
Diffstat (limited to 'lexer')
-rw-r--r--lexer/theme-lexer.l2
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;}