mazurov/sublime-levels

"catch" in try/catch is (incorrectly?) being hilighted as scope variable

bwiklund opened this issue · 4 comments

"catch" in try/catch is (incorrectly?) being hilighted as scope variable

Hi Ben, could you attach a screenshot with your problem?

It's not the bug. By design, the eslevels hightlights not only the variables, but also the keywords that introduce new variable scopes, such as function, catch. In your case catch creates a new variable scope with variable e inside.

Hmm, makes sense. TY!