Module: vkd3d Branch: master Commit: ddbfd88e74e1e80a3bf56c2e5b55a2bd7c53d92c URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/ddbfd88e74e1e80a3bf56c2e5b55a2...
Author: Zebediah Figura zfigura@codeweavers.com Date: Mon May 8 12:52:10 2023 -0500
vkd3d-shader/preproc: Lex whitespace and invalid characters in #include and #line directives.
Avoid letting them fall through to the default rule.
A syntax error will be emitted by the parser.
---
libs/vkd3d-shader/preproc.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libs/vkd3d-shader/preproc.l b/libs/vkd3d-shader/preproc.l index 7686e018..be4a0598 100644 --- a/libs/vkd3d-shader/preproc.l +++ b/libs/vkd3d-shader/preproc.l @@ -175,9 +175,9 @@ INT_SUFFIX [uUlL]{0,2} return T_NEWLINE; }
-<INITIAL>{WS}+ {} +<INITIAL,INCLUDE,LINE>{WS}+ {} <INITIAL>[-()[]{},+!*/<>&|^?:] {return yytext[0];} -<INITIAL>. {return T_TEXT;} +<INITIAL,INCLUDE,LINE>. {return T_TEXT;}
%%