Sublime Forum

Extend syntax definition from user folder

#1

I think it would be very useful to be able to add a single syntax definition to the existing default. A simple tmLanguage file in the user folder could, for example, extend the built-in javascript definition to properly highlight jQuery variables ($variable). Currently, unless I’m mistaken, the only way to do this is to import the default tmLanguage file into a fragment in the user folder, per the last suggestion here: Extend syntax definition from user folder?.

This is fine, but if there are other plugins doing the same, then both need to be linked in. It also means the syntax being used for a particular extension will be nonstandard which might (?) cause problems with other plugins.

It seems it would be cleaner to be able to modify the existing defaults, similar to how the user preferences modify and add to the default preferences.

0 Likes