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 #109

Open
alexr00 opened this issue Jun 8, 2020 · 0 comments
Open

JsDoc in HTML files syntax highlight #109

alexr00 opened this issue Jun 8, 2020 · 0 comments

Comments

@alexr00
Copy link

alexr00 commented Jun 8, 2020

Originally from @Laser42 in microsoft/vscode#98575

  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant