Skip to content

Conversation

mzhongl524
Copy link
Member

Fix: #5239.

syntax highlighting does not correctly recognize parameter name with hyphen

@mzhongl524 mzhongl524 added the ide Issues for VS, VSCode, Monaco, etc. label Sep 30, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the compiler:core Issues for @typespec/compiler label Sep 30, 2025
Copy link

pkg-pr-new bot commented Sep 30, 2025

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/compiler@8619

commit: 028b9ff

Copy link
Contributor

github-actions bot commented Sep 30, 2025

All changed packages have been documented.

  • @typespec/compiler
Show changes

@typespec/compiler - fix ✏️

Syntax highlighting does not correctly recognize parameter name with hyphen

@azure-sdk
Copy link
Collaborator

azure-sdk commented Sep 30, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

Copy link
Member

Choose a reason for hiding this comment

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

I am not sure this is the right approach, this just fix the - case, ultimately it is a problem that you can escape any string to be an identifier but we don't have the same thing for parmaeter name in doc comment

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

Labels

compiler:core Issues for @typespec/compiler ide Issues for VS, VSCode, Monaco, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support @param, @template, @prop targetting identifiers that need escaping

3 participants