From: Sebastian Harl Date: Mon, 24 Mar 2008 11:07:20 +0000 (+0100) Subject: liboconfig/parser.y: Enabled verbose error messages. X-Git-Tag: collectd-4.2.6~5 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=886a41b16b30e495b0508ceae3eeb9cea3304d43;p=collectd.git liboconfig/parser.y: Enabled verbose error messages. This uses bison's "%error-verbose" option which might not be available in other yacc implementations. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- diff --git a/src/liboconfig/parser.y b/src/liboconfig/parser.y index 48b9bf3d..d237273c 100644 --- a/src/liboconfig/parser.y +++ b/src/liboconfig/parser.y @@ -65,6 +65,9 @@ extern char *c_file; %type statement_list %type entire_file +/* pass an verbose, specific error message to yyerror() */ +%error-verbose + %% string: QUOTED_STRING {$$ = unquote ($1);}