mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
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:
committed by
Alexandre Julliard
parent
c1d2edc9d5
commit
338399d563
@@ -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;}
|
||||
|
Reference in New Issue
Block a user