Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect syntax highlighting JSDoc comments @default { } #1023

Open
babakfp opened this issue Mar 17, 2024 · 0 comments
Open

Incorrect syntax highlighting JSDoc comments @default { } #1023

babakfp opened this issue Mar 17, 2024 · 0 comments
Assignees

Comments

@babakfp
Copy link

babakfp commented Mar 17, 2024

Type: Bug

image

/** @default { open: "---", close: "---" } */

Highlighting works (kind of but not really) if I remove the whitespace like this:

image

/** @default {open:"---",close:"---"} */

Note that this ^^^ syntax highlighting is incorrect! Correct syntax highlighting looks like this:

image

Which is achieved by writing:

/**
 * @default
 * { open: "---", close: "---" }
 */

For simple reproduction use:

/** @default { } */

image

image


VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:20:17.278Z)
OS version: Windows_NT x64 10.0.22631
Modes: Unsupported

@babakfp babakfp changed the title Incorrect syntax highlighting JSDoc comments @default {} Incorrect syntax highlighting JSDoc comments @default { } Mar 17, 2024
@mjbvz mjbvz transferred this issue from microsoft/vscode Mar 20, 2024
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

No branches or pull requests

2 participants