Sublime-JS-Custom
Sublime-JS-Custom copied to clipboard
Don't highlight environment-specific builtins
Hi!
I ❤️ your plugin! :). Especially because it's fast and does the job without trying to turn Sublime Text into a bloated IDE :). Thanks for a great work!
I found some inconsistency in highlighting .size
in object literals. Here's a code to reproduce:
function foo (x) {
return {
s: x.size,
l: x.length
}
}
I use Mariana color scheme with Adaptive theme on mac OS.
Thanks!
szw
Same goes with .domain
, .name
etc.
I guess it is triggered by this line: https://github.com/Thom1729/Sublime-JS-Custom/blob/0f07ccb1108bbf535f0e0006bba0a7ce5524a2e0/src/JavaScript.yaml#L1838
This behavior is part of the core syntax. Down the road, I would like to provide the option to disable this.
That would be great! In node development I found that highlighting pretty annoying.
Related: https://github.com/sublimehq/Packages/issues/1563.
See https://github.com/sublimehq/Packages/pull/1641, which will clear the way for this.