mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Remove C++ comment lexing.
This is already handled by the preprocessor.
This commit is contained in:
parent
4cfc7d44ab
commit
7632365e60
Notes:
Alexandre Julliard
2023-11-06 23:18:46 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/426
@ -53,7 +53,6 @@ RESERVED4 typename|union|unsigned|using|virtual
|
|||||||
|
|
||||||
WS [ \t]
|
WS [ \t]
|
||||||
NEWLINE (\n)|(\r\n)
|
NEWLINE (\n)|(\r\n)
|
||||||
DOUBLESLASHCOMMENT "//"[^\n]*
|
|
||||||
STRING \"[^\"]*\"
|
STRING \"[^\"]*\"
|
||||||
IDENTIFIER [A-Za-z_][A-Za-z0-9_]*
|
IDENTIFIER [A-Za-z_][A-Za-z0-9_]*
|
||||||
|
|
||||||
@ -218,8 +217,6 @@ row_major {return KW_ROW_MAJOR; }
|
|||||||
return C_INTEGER;
|
return C_INTEGER;
|
||||||
}
|
}
|
||||||
|
|
||||||
{DOUBLESLASHCOMMENT} {}
|
|
||||||
|
|
||||||
{WS}+ {}
|
{WS}+ {}
|
||||||
{NEWLINE} {
|
{NEWLINE} {
|
||||||
struct hlsl_ctx *ctx = yyget_extra(yyscanner);
|
struct hlsl_ctx *ctx = yyget_extra(yyscanner);
|
||||||
|
Loading…
Reference in New Issue
Block a user