Message ID | 1471440601-5327-5-git-send-email-pablo@netfilter.org |
---|---|
State | Accepted |
Delegated to: | Pablo Neira |
Headers | show |
diff --git a/src/parser_bison.y b/src/parser_bison.y index ba2dba4..f4ce11d 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -221,8 +221,8 @@ static void location_update(struct location *loc, struct location *rhs, int n) %token <val> NUM "number" %token <string> STRING "string" -%token <string> QUOTED_STRING -%token <string> ASTERISK_STRING +%token <string> QUOTED_STRING "quoted string" +%token <string> ASTERISK_STRING "string with a trailing asterisk" %destructor { xfree($$); } STRING QUOTED_STRING ASTERISK_STRING %token LL_HDR "ll"
<cmdline>:1:24-24: Error: syntax error, unexpected newline, expecting string or QUOTED_STRING or ASTERISK_STRING add rule x y log prefix ^ Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> --- src/parser_bison.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)