Home Download Buy Blog Forum Support

Extend syntax definition from user folder

Extend syntax definition from user folder

Postby wastvedt on Wed Feb 05, 2014 7:50 pm

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: viewtopic.php?f=3&t=15279&p=57778#p57778.

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.
wastvedt
 
Posts: 4
Joined: Mon Feb 03, 2014 6:51 pm

Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 13 guests