microsoft / TypeScript-TmLanguage

TextMate grammar files for TypeScript for VS Code, Sublime Text, and Atom.
MIT License
413 stars 126 forks source link

No color on default template argument #994

Open barsdeveloper opened 11 months ago

barsdeveloper commented 11 months ago

The default argument for template is not highlighted correctly even though it is correct syntax and it's recognized by the typescript language server

/**
 * @template Value
 * @template [Output=Value]
 **///       ^ from here on
class A {}

/** @typedef {A<Number>} Custom */
barsdeveloper commented 11 months ago

Please remember that default can also be a value, not just a type https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#param-and-returns