Sublime Forum

Javascript highlighting bug report

#1

In this code:

var obj = {
    func1: (param1) => {},
    func2: (
        param2
    ) => {},
};

It seems that func2 doesn’t get the meta.function.declaration.js and entity.name.function.js scopes, while func1 does, and likewise param2 doesn’t get the meta.binding.name.js and variable.function.parameter.js scopes.

0 Likes

#2

this will presumably be fixed by

0 Likes

#3

After reading this, I opened another issue to address the entity.name.function scoping: https://github.com/sublimehq/Packages/issues/2267

0 Likes