vkd3d-shader/preproc: Ignore newlines in C comments.

Avoid letting them fall through to the default rule.
This commit is contained in:
Zebediah Figura 2023-05-08 13:06:31 -05:00 committed by Alexandre Julliard
parent ddbfd88e74
commit 871cf0b4b5
Notes: Alexandre Julliard 2023-05-09 22:25:38 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/204

View File

@ -74,6 +74,7 @@ INT_SUFFIX [uUlL]{0,2}
<C_COMMENT>"*/" {yy_pop_state(yyscanner);}
<C_COMMENT,CXX_COMMENT><<EOF>> {yy_pop_state(yyscanner);}
<C_COMMENT,CXX_COMMENT>. {}
<C_COMMENT>\n {}
<ERROR>(\\{NEWLINE}|[^\n])* {return T_STRING;}