tree-sitter-jsdoc
tree-sitter-jsdoc copied to clipboard
Syntax highlighting for multi line JSDoc blocks
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,
* }}
*/
``