Thom1729 / Sublime-JS-Custom

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

Highlight function calls #87

Closed dsl101 closed 4 years ago

dsl101 commented 4 years ago

I've been using JavaScript Next for ages, and have really got used to it. But it's old, and now doesn't support things like arrow function parameter default values which are function calls amongst other things. So I moved to JS Custom, but there is one thing that niggles me—I'm really used to function calls highlighted as function names. Is it possible to fix with a local customisation? Or does it need a change to the syntax file itself? Compare JavaScript Next on left vs JS Custom on right. The thing function definition and parameters look great, but I'd like the calls to also be green...

image

Thom1729 commented 4 years ago

The function names in the calls are scoped variable.function.js, which should be colored by most schemes. Your color scheme looks like Monokai, but I've just checked and the version of Monokai bundled with Sublime does highlight the function calls. Are you using a third-party color scheme? (E.g. the Monokai variant that's packaged with JavaScript Next?)

dsl101 commented 4 years ago

I have both Monokai and Monokai (SL) installed—not sure if either came with JS Next. But both those schemes colour function calls in JS Next and don't in JS Custom.

I've removed JS Next, cleared the \Cache fodler and restarted ST, but still no coloring of function calls.

Then I installed Monokai++, and function call coloring is there. So I suspect I just have a random collection of old theme files which are out of date :). Sorry for the interruption! Still no idea why JS Next worked, unless it patched the color scheme when active... Anyway, problem solved.