Skip to content

Highlight using / await using declarations in JavaScript & TypeScript#4079

Open
Skn0tt wants to merge 1 commit into
PrismJS:v2from
Skn0tt:add-using-keyword
Open

Highlight using / await using declarations in JavaScript & TypeScript#4079
Skn0tt wants to merge 1 commit into
PrismJS:v2from
Skn0tt:add-using-keyword

Conversation

@Skn0tt
Copy link
Copy Markdown

@Skn0tt Skn0tt commented May 12, 2026

Adds support for the ES2026 Explicit Resource Management using and await using declarations.

using file = openFile();
await using conn = getConn();
for (using x of arr) {}

Previously, using was treated as a plain identifier in all positions; these snippets now highlight using as a keyword.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 12, 2026

Deploy Preview for dev-prismjs-com ready!

Name Link
🔨 Latest commit ca94766
🔍 Latest deploy log https://app.netlify.com/projects/dev-prismjs-com/deploys/6a02ed922848c900087f46a3
😎 Deploy Preview https://deploy-preview-4079--dev-prismjs-com.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Copy Markdown

No JS Changes

Generated by 🚫 dangerJS against ca94766

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.

1 participant