Module: vkd3d Branch: master Commit: 871cf0b4b503b0e85263a86b7b1c2dd3c8fad711 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/871cf0b4b503b0e85263a86b7b1c2d...
Author: Zebediah Figura zfigura@codeweavers.com Date: Mon May 8 13:06:31 2023 -0500
vkd3d-shader/preproc: Ignore newlines in C comments.
Avoid letting them fall through to the default rule.
---
libs/vkd3d-shader/preproc.l | 1 + 1 file changed, 1 insertion(+)
diff --git a/libs/vkd3d-shader/preproc.l b/libs/vkd3d-shader/preproc.l index be4a0598..a54e47bc 100644 --- a/libs/vkd3d-shader/preproc.l +++ b/libs/vkd3d-shader/preproc.l @@ -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;}