settings: Add support for multi-line strings

Unterminated strings are now an error.
This commit is contained in:
Tobias Brunner
2015-07-28 13:27:32 +02:00
parent d918410add
commit 764960e8b9
3 changed files with 20 additions and 16 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ static int yylex(YYSTYPE *lvalp, parser_helper_t *ctx)
struct kv_t *kv;
}
%token <s> NAME STRING
%token NEWLINE
%token NEWLINE STRING_ERROR
/* ...and other symbols */
%type <s> value valuepart