Skip to content

Implement quoted identifier parsing#2715

Merged
zherczeg merged 1 commit into
WebAssembly:mainfrom
zherczeg:quoted_names
Mar 12, 2026
Merged

Implement quoted identifier parsing#2715
zherczeg merged 1 commit into
WebAssembly:mainfrom
zherczeg:quoted_names

Conversation

@zherczeg

Copy link
Copy Markdown
Collaborator

It turned out that webassembly 3.0 support $"quoted identifiers". It seems it is part of the annotations proposal:

https://github.com/WebAssembly/annotations/blob/main/proposals/annotations/Overview.md
Extend the grammar of identifiers as follows: id ::= "$"idchar+ | "$"name

This patch should add support for it.

@zherczeg

Copy link
Copy Markdown
Collaborator Author

This patch is bigger than I hoped for, but at least not complex.

@sbc100 sbc100 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.

Are these new test still going to be needed/useful once we update the testsuite to 3.0?

Or are they going to be redundant? If so maybe add comments to remove them once we update?

@zherczeg

Copy link
Copy Markdown
Collaborator Author

More tests are always useful I think. And they test the error message as well, not just the operation. Can I land the patch?

@sbc100

sbc100 commented Mar 12, 2026

Copy link
Copy Markdown
Member

Yup, feel free to land if you have LGTM and tests pass.

@zherczeg zherczeg merged commit 8307234 into WebAssembly:main Mar 12, 2026
17 checks passed
@zherczeg zherczeg deleted the quoted_names branch March 12, 2026 18:52
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.

2 participants