From 600fdcd112d9f74ca79ebd9f74174d49bda0f1f7 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Mon, 8 May 2023 12:56:36 -0500 Subject: [PATCH] vkd3d-shader/hlsl: Lex invalid characters in #line directives. Avoid letting them fall through to the default rule. --- libs/vkd3d-shader/hlsl.l | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/vkd3d-shader/hlsl.l b/libs/vkd3d-shader/hlsl.l index 10751bbe..8a7cd234 100644 --- a/libs/vkd3d-shader/hlsl.l +++ b/libs/vkd3d-shader/hlsl.l @@ -266,6 +266,10 @@ row_major {return KW_ROW_MAJOR; } return STRING; } {WS}+ {} +{ANY} { + FIXME("Malformed preprocessor line directive?\n"); + BEGIN(INITIAL); + } {NEWLINE} { FIXME("Malformed preprocessor line directive?\n"); BEGIN(INITIAL);