[PATCH vkd3d v2 3/4] vkd3d-shader: Preserve some tokens verbatim for the assembler.
Zebediah Figura
zfigura at codeweavers.com
Mon Jan 25 11:23:58 CST 2021
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
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 c17b9d62..82b64925 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;}
--
2.30.0
More information about the wine-devel
mailing list