From 5fffedddf9aa38ac846ab92dc0a59bb83475aba9 Mon Sep 17 00:00:00 2001 From: stefanrueger Date: Fri, 22 Dec 2023 00:25:43 +1300 Subject: [PATCH] Print error message and location of unknown tokens in config files --- src/lexer.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lexer.l b/src/lexer.l index eeb3a4a1..623f26db 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -280,7 +280,7 @@ c: { yyerror("possible old-style config file entry\n" "/avrdude.conf.sample for a sample)"); return YYERRCODE; } -. { return YYERRCODE; } - +. { yyerror("unknown token"); + return YYERRCODE; } %%