From 28f116b4a20ae36791bc767bba17b76ba9f52ee0 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sun, 28 May 2017 18:05:02 +0200 Subject: Allow textbox to be added in theme --- lexer/theme-lexer.l | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lexer/theme-lexer.l') diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l index 4f572436..4bb1c60a 100644 --- a/lexer/theme-lexer.l +++ b/lexer/theme-lexer.l @@ -394,7 +394,8 @@ if ( queue == NULL ){ (true|false) { yylval->bval= g_strcmp0(yytext, "true") == 0; return T_BOOLEAN;} {PNNUMBER}\.{NUMBER}+ { yylval->fval = g_ascii_strtod(yytext, NULL); return T_DOUBLE;} {PNNUMBER} { yylval->ival = (int)g_ascii_strtoll(yytext, NULL, 10); return T_INT;} -\"{STRING}\" { yytext[yyleng-1] = '\0'; yylval->sval = g_strdup(&yytext[1]); return T_STRING;} +\"{STRING}\" { yytext[yyleng-1] = '\0'; yylval->sval = g_strcompress(&yytext[1]); return T_STRING;} + @{WORD} { yylval->sval = g_strdup(yytext); return T_LINK; -- cgit v1.2.3