Zebediah Figura : vkd3d-shader/hlsl: Remove C++ comment lexing.
Module: vkd3d Branch: master Commit: 7632365e6040bbb9ff45b7d4504f219ee4966ad8 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/7632365e6040bbb9ff45b7d4504f21... Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Sat Jul 29 19:05:45 2023 -0500 vkd3d-shader/hlsl: Remove C++ comment lexing. This is already handled by the preprocessor. --- libs/vkd3d-shader/hlsl.l | 3 --- 1 file changed, 3 deletions(-) diff --git a/libs/vkd3d-shader/hlsl.l b/libs/vkd3d-shader/hlsl.l index 861ac173..5625891c 100644 --- a/libs/vkd3d-shader/hlsl.l +++ b/libs/vkd3d-shader/hlsl.l @@ -53,7 +53,6 @@ RESERVED4 typename|union|unsigned|using|virtual WS [ \t] NEWLINE (\n)|(\r\n) -DOUBLESLASHCOMMENT "//"[^\n]* STRING \"[^\"]*\" IDENTIFIER [A-Za-z_][A-Za-z0-9_]* @@ -218,8 +217,6 @@ row_major {return KW_ROW_MAJOR; } return C_INTEGER; } -{DOUBLESLASHCOMMENT} {} - {WS}+ {} {NEWLINE} { struct hlsl_ctx *ctx = yyget_extra(yyscanner);
participants (1)
-
Alexandre Julliard