microsoft / TypeScript-TmLanguage

TextMate grammar files for TypeScript for VS Code, Sublime Text, and Atom.
MIT License
413 stars 126 forks source link

Wrong color when using jsdoc for a lambda #948

Closed barsdeveloper closed 1 year ago

barsdeveloper commented 1 year ago

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

Steps to Reproduce:

  1. Create a new JavaScript file
  2. Print the following code

    class A {
    #a =
        /** @param {MouseEvent} arg */
        arg => {
            const someV = 132
            if (true) {
                doSomething()
            }
            while(false) {
    
            }
        }
    }

Outcome: The color of the constructs, variables, ... are wrong. If you remove the comment, it becomes correct.