vkd3d-shader: Implement logical operators in #if directives.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura
2021-01-21 16:10:45 -06:00
committed by Alexandre Julliard
parent c1d2edc9d5
commit 338399d563
2 changed files with 30 additions and 4 deletions

View File

@@ -82,6 +82,8 @@ IDENTIFIER [A-Za-z_][A-Za-z0-9_]*
<INITIAL>">=" {return T_GE;}
<INITIAL>"==" {return T_EQ;}
<INITIAL>"!=" {return T_NE;}
<INITIAL>"&&" {return T_AND;}
<INITIAL>"||" {return T_OR;}
/* We have no use for floats, but shouldn't parse them as integers. */
@@ -95,8 +97,6 @@ IDENTIFIER [A-Za-z_][A-Za-z0-9_]*
<INITIAL>## {return T_CONCAT;}
<INITIAL>"&&" {return T_TEXT;}
<INITIAL>"||" {return T_TEXT;}
<INITIAL>"++" {return T_TEXT;}
<INITIAL>"--" {return T_TEXT;}
<INITIAL>"<<"=? {return T_TEXT;}