Sublime Forum

Issue with JavaScript Core Language Package

#1

Hi jps,

I was wondering if it would be possible to fix an issue within the core JavaScript.sublime-package. The file JavaScript.tmLanguage incorrectly defines the ‘$’ as a keyword/operator for javascript when it is not, it’s just a normal character in javascript.

One other issue I’ve found with the JavaScript functionality is that any completions that have a ‘$’ within them are not properly completed. For example, if I have $someVar and trigger the completion I will end up with $$someVar

I’ve noticed that PHP does not have this issue so when completing words with the ‘$’ they’re completed as they should be.

I also understand that you can add a syntax specific word_separators to remedy this but this seems like something that would be better resolved in the core distribution.

Any insight on this would be appreciated.

Thanks.

0 Likes

Javascript - syntax highlight forEach()