mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/preproc: Ignore newlines in C comments.
Avoid letting them fall through to the default rule.
This commit is contained in:
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
@ -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;}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user