Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JsDoc in HTML files syntax highlight #98575

Closed
Laser42 opened this issue May 26, 2020 · 1 comment
Closed

JsDoc in HTML files syntax highlight #98575

Laser42 opened this issue May 26, 2020 · 1 comment
Assignees
Labels
grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream

Comments

@Laser42
Copy link

Laser42 commented May 26, 2020

  • VSCode Version: 1.45.1
  • OS Version: Windows 10 Pro x64

JsDoc comments highlights incorrectly when editing html files.

Steps to Reproduce:

  1. Create a HTML file
  2. Add <script></script> section as follows:
<script>

    /**
     * A function
     * @param {string} arg - string argument
     * @returns {null} - desc
     */
    function MyFunc(arg) {
        return null;
    }
    /**
     * A class
     */
    class MyClass {
        /**
         * Ctor
         * @param {string} field - desc
         */
        constructor(field) {
            this.field = field;
        }
    }

</script>
  1. Note that JsDoc syntax inside class has a highlight, while there is no syntax highlight for function's JsDoc:
    image

Does this issue occur when all extensions are disabled?: Yes

@alexr00
Copy link
Member

alexr00 commented Jun 8, 2020

Moved to the owning repo: textmate/html.tmbundle#109

@alexr00 alexr00 closed this as completed Jun 8, 2020
@alexr00 alexr00 added grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream labels Jun 8, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jul 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
grammar Syntax highlighting grammar upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

2 participants