Skip to content

Remove unnecessary uses of _disambiguate_template.#6270

Open
jimblandy wants to merge 2 commits into
gpuweb:mainfrom
jimblandy:extra-tld-disambiguation
Open

Remove unnecessary uses of _disambiguate_template.#6270
jimblandy wants to merge 2 commits into
gpuweb:mainfrom
jimblandy:extra-tld-disambiguation

Conversation

@jimblandy

Copy link
Copy Markdown
Contributor

Remove the uses of the _disambiguate_template pseudo-production from template_elaborated_ident and core_lhs_expression. These immediately follow an ident, which has already triggered template list discovery via its own use of _disambiguate_template.

Regenerate images and grammar fragments.

Fixes #6269.

Remove the uses of the `_disambiguate_template` pseudo-production from
`template_elaborated_ident` and `core_lhs_expression`. These
immediately follow an `ident`, which has already triggered template
list discovery via its own use of `_disambiguate_template`.

Regenerate images and grammar fragments.

Fixes gpuweb#6269.
@github-actions

github-actions Bot commented May 25, 2026

Copy link
Copy Markdown
Contributor

Previews, as seen when this build job started (634e15c):
WebGPU webgpu.idl | Explainer | Correspondence Reference
WGSL grammar.js | wgsl.lalr.txt

@dj2

dj2 commented May 25, 2026

Copy link
Copy Markdown
Member

Viewing the generated WGSL preview, it looks like it's still showing, is that expected and something that gets fixed when it's merged?

@jimblandy

Copy link
Copy Markdown
Contributor Author

Interesting; when I ran bikeshed locally, I got this:

image

I did have an earlier version of the branch where I hadn't yet regenerated the fragments. Maybe CI built the HTML from that, and then didn't notice that the PR would affect the HTML, since it only touches included files?

@mehmetoguzderin mehmetoguzderin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically LGTM in terms of syntax, the preview render issue is related to CI picking files individually (probably). Additional review would be also appreciated

@mehmetoguzderin mehmetoguzderin requested a review from dneto0 June 9, 2026 17:59

@dneto0 dneto0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for your diligence.
(Can't verify in the moment but if this breaks anything/anybody we can reverse if we need to.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

More uses of _disambiguate_template than expected

4 participants