mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader: Implement #else.
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
86cb863bc2
commit
78e31bff16
@@ -100,6 +100,8 @@ IDENTIFIER [A-Za-z_][A-Za-z0-9_]*
|
||||
for (p = yytext + 1; strchr(" \t", *p); ++p)
|
||||
;
|
||||
|
||||
if (!strcmp(p, "else"))
|
||||
return T_ELSE;
|
||||
if (!strcmp(p, "endif"))
|
||||
return T_ENDIF;
|
||||
if (!strcmp(p, "if"))
|
||||
@@ -187,6 +189,7 @@ int yylex(YYSTYPE *lval, YYLTYPE *lloc, yyscan_t scanner)
|
||||
{
|
||||
switch (token)
|
||||
{
|
||||
case T_ELSE:
|
||||
case T_ENDIF:
|
||||
case T_IF:
|
||||
ctx->current_directive = token;
|
||||
|
||||
Reference in New Issue
Block a user