Skip to content

No top-level JSDoc syntax highlighting in script tags #135417

Closed as not planned
Closed as not planned

Description

@j4k0xb

Issue Type: Bug

Syntax highlighting for JSDoc works fine in standalone javascript files, but are just gray when used at the top level of script tags.
Example html:

<html>
<body>
  <script>
    /** @type {number} */
    const a = 3;

    function f() {
      /** @type {number} */
      const b = 3;
    }
  </script>
</body>
</html>

Screenshot:
2021-10-19_21-22

VS Code version: Code 1.61.1 (c13f1ab, 2021-10-14T01:15:35.620Z)
OS version: Linux x64 5.13.19-2-MANJARO
Restricted Mode: No

Edit: Closing as there's already an issue in textmate/html.tmbundle#109

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable buggrammarSyntax highlighting grammarhelp wantedIssues identified as good community contribution opportunitieshtmlHTML support issuesjavascriptJavaScript support issues

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions