vkd3d-shader/hlsl: Lex invalid characters in #line directives.

Avoid letting them fall through to the default rule.
This commit is contained in:
Zebediah Figura 2023-05-08 12:56:36 -05:00 committed by Alexandre Julliard
parent 7b8845474d
commit 600fdcd112
Notes: Alexandre Julliard 2023-05-09 22:25:38 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/204

View File

@ -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);