Module: vkd3d Branch: master Commit: 3b132ec5ea8c4df6983e5c874e1081ac9cbbc0e6 URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=3b132ec5ea8c4df6983e5c87...
Author: Zebediah Figura zfigura@codeweavers.com Date: Mon Jan 25 11:23:58 2021 -0600
vkd3d-shader: Preserve some tokens verbatim for the assembler.
Signed-off-by: Zebediah Figura zfigura@codeweavers.com Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Matteo Bruni mbruni@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
libs/vkd3d-shader/preproc.l | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/libs/vkd3d-shader/preproc.l b/libs/vkd3d-shader/preproc.l index c17b9d6..82b6492 100644 --- a/libs/vkd3d-shader/preproc.l +++ b/libs/vkd3d-shader/preproc.l @@ -104,6 +104,10 @@ IDENTIFIER [A-Za-z_][A-Za-z0-9_]* <INITIAL>">>"=? {return T_TEXT;} <INITIAL>[-+*/%&|^]= {return T_TEXT;}
+ /* Native doesn't preserve these tokens when running the preprocessor on its + * own, but there's no good reason to emulate that difference yet. */ +<INITIAL>[pv]s.[123].[0-4x] {return T_TEXT;} + <INCLUDE,LINE>"[^"]*" {return T_STRING;} <INCLUDE><[^>]*> {return T_STRING;}