tree-sitter-jsdoc icon indicating copy to clipboard operation
tree-sitter-jsdoc copied to clipboard

Syntax highlighting for multi line JSDoc blocks

Open AustinGil opened this issue 2 months ago • 0 comments

There is an issue in the Zed code editor where multi-line JSDoc blocks do not get the proper syntax highlighting (https://github.com/zed-industries/zed/issues/19575). From that thread, it sounds like the issue is with tree-sitter. Can anyone verify that the issue is here?

Here's an example of two working syntaxs and one that doesn't

// Works
/** @type {{ prop1: 1, prop2: 2 }} */
// Works
 /**
  * @type {{ prop1: 1, prop2: 2 }}
  */
// Doesn't work
/**
 * @type {{
 * prop1: 1,
 * prop2: 2,
 * }}
 */
``

AustinGil avatar Oct 05 '25 20:10 AustinGil