Skip to content

Syntax highlighting for multi line JSDoc blocks #27

@AustinGil

Description

@AustinGil

There is an issue in the Zed code editor where multi-line JSDoc blocks do not get the proper syntax highlighting (zed-industries/zed#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,
 * }}
 */
``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions