Module: vkd3d Branch: master Commit: 600fdcd112d9f74ca79ebd9f74174d49bda0f1f7 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/600fdcd112d9f74ca79ebd9f74174d... Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Mon May 8 12:56:36 2023 -0500 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; } <pp_line>{WS}+ {} +<pp_line>{ANY} { + FIXME("Malformed preprocessor line directive?\n"); + BEGIN(INITIAL); + } <pp_line>{NEWLINE} { FIXME("Malformed preprocessor line directive?\n"); BEGIN(INITIAL);