Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 4ce5ef2d7e095913f6835b4bd1c6928957b9d1df https://github.com/WebKit/WebKit/commit/4ce5ef2d7e095913f6835b4bd1c6928957b9d1df Author: Tadeu Zagallo <tzaga...@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 _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes