mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/preproc: Swap to the INITIAL state after ending a buffer.
This commit is contained in:
committed by
Henri Verbeet
parent
0eb5fee633
commit
d768ea6709
Notes:
Henri Verbeet
2025-06-05 16:19:09 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1538
@@ -80,7 +80,11 @@ INT_SUFFIX [uUlL]{0,2}
|
|||||||
return T_NEWLINE;
|
return T_NEWLINE;
|
||||||
}
|
}
|
||||||
<C_COMMENT>"*/" {yy_pop_state(yyscanner);}
|
<C_COMMENT>"*/" {yy_pop_state(yyscanner);}
|
||||||
<C_COMMENT,CXX_COMMENT><<EOF>> {yy_pop_state(yyscanner);}
|
<C_COMMENT,CXX_COMMENT><<EOF>> {
|
||||||
|
yy_pop_state(yyscanner);
|
||||||
|
BEGIN(INITIAL);
|
||||||
|
yyterminate();
|
||||||
|
}
|
||||||
<C_COMMENT,CXX_COMMENT>. {}
|
<C_COMMENT,CXX_COMMENT>. {}
|
||||||
<C_COMMENT>\n {}
|
<C_COMMENT>\n {}
|
||||||
|
|
||||||
@@ -196,6 +200,10 @@ INT_SUFFIX [uUlL]{0,2}
|
|||||||
BEGIN(INITIAL);
|
BEGIN(INITIAL);
|
||||||
return T_NEWLINE;
|
return T_NEWLINE;
|
||||||
}
|
}
|
||||||
|
<INITIAL,INCLUDE,ERROR,LINE><<EOF>> {
|
||||||
|
BEGIN(INITIAL);
|
||||||
|
yyterminate();
|
||||||
|
}
|
||||||
|
|
||||||
<INITIAL,INCLUDE,LINE>{WS}+ {}
|
<INITIAL,INCLUDE,LINE>{WS}+ {}
|
||||||
<INITIAL>[-()\[\]{},+!*/<>&|^?:] {return yytext[0];}
|
<INITIAL>[-()\[\]{},+!*/<>&|^?:] {return yytext[0];}
|
||||||
|
Reference in New Issue
Block a user