From 739ba06680c762ff0a2e93027fefe0ab84ab6adc Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 16 Jun 2010 12:41:37 -0700 Subject: [PATCH] glcpp: Complain about unrecognized directives. --- glcpp/glcpp-parse.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glcpp/glcpp-parse.y b/glcpp/glcpp-parse.y index f9fab8bf293..fde9b92edec 100644 --- a/glcpp/glcpp-parse.y +++ b/glcpp/glcpp-parse.y @@ -360,7 +360,9 @@ text_line: ; non_directive: - pp_tokens NEWLINE + pp_tokens NEWLINE { + yyerror (parser, "Invalid tokens after #"); + } ; replacement_list: -- 2.30.2