summaryrefslogtreecommitdiffstats
path: root/lexer/theme-lexer.l
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-09 08:55:51 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-09 08:55:51 +0100
commita199fa3275c2bf2dfe6320de1410266ac626c6db (patch)
tree2139ecc65d188e9d2824c237d758cd8bfece06d9 /lexer/theme-lexer.l
parent5188e36147010c22c3fc5041e7a82f3f1a7c9e3f (diff)
Improve error message theme a little bit
Diffstat (limited to 'lexer/theme-lexer.l')
-rw-r--r--lexer/theme-lexer.l12
1 files changed, 2 insertions, 10 deletions
diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l
index 843eeccb..c9a8c152 100644
--- a/lexer/theme-lexer.l
+++ b/lexer/theme-lexer.l
@@ -307,10 +307,6 @@ if ( queue == NULL ){
yylval->ival = WL_NORTH;
return T_POSITION;
}
-<PROPERTIES>{NORTH} {
- yylval->ival = WL_NORTH;
- return T_POSITION;
-}
<PROPERTIES>{NONE} {
yylval->ival = HL_NONE;
return T_HIGHLIGHT_STYLE;
@@ -343,15 +339,11 @@ if ( queue == NULL ){
yylloc->last_line ++;
};
<INITIAL>. {
- const char *error_msg = "Expected 'root' element or a 'named' element.\n"\
- "Place all global properties in a root element:\n"\
- " * {\n"\
- " }\n";
- YY_FATAL_ERROR( error_msg );
+ return T_ERROR;
}
<*>. {
fprintf(stderr, "Invalid character: '%c'\n", *yytext);
- yyterminate();
+ return T_ERROR;
}
%%