[webkit-changes] [WebKit/WebKit] 4ce5ef: [WGSL] Ignore extraneous semicolons in statements ...
Tadeu Zagallo
noreply at github.com
Wed Feb 1 01:38:22 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4ce5ef2d7e095913f6835b4bd1c6928957b9d1df
https://github.com/WebKit/WebKit/commit/4ce5ef2d7e095913f6835b4bd1c6928957b9d1df
Author: Tadeu Zagallo <tzagallo at apple.com>
Date: 2023-02-01 (Wed, 01 Feb 2023)
Changed paths:
M Source/WebGPU/WGSL/Parser.cpp
Log Message:
-----------
[WGSL] Ignore extraneous semicolons in statements and declarations
https://bugs.webkit.org/show_bug.cgi?id=251442
rdar://104873247
Reviewed by Myles C. Maxfield.
Update parser to match the spec: semicolons are valid statements and declarations.
Add the code to `parseGlobalDecl` to skip semicolons and update `parseStatement`
so we don't allocate an empty node if we find extraneous semicolons.
* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::Parser<Lexer>::parseGlobalDecl):
(WGSL::Parser<Lexer>::parseStatement):
Canonical link: https://commits.webkit.org/259668@main
More information about the webkit-changes
mailing list