Thom1729 / Sublime-JS-Custom

Customizable JavaScript syntax highlighting for Sublime Text.
MIT License
137 stars 9 forks source link

Error constructor is not considered a built-in #61

Closed nwoltman closed 5 years ago

nwoltman commented 5 years ago

With this code

new Error()

the Error constructor has the scope

support.class.error.js

but it seems like it should be

support.class.builtin.error.js

Without the support.class.builtin part, the Error constructor doesn't get highlighted like the other built-in constructors (Array, Date, etc.).

Thom1729 commented 5 years ago

This is consistent with the core JavaScript syntax. It seems sensible to change this; if you open an issue on the core Packages tracker, I can probably get to it soon.