I want to write a syntax definition file for Sublime Text 2 for the Find Results that respects the file extensions for each place it finds the searched for term. The documentation mentions that "Syntax definitions from separate files can be combined" but does not mention how.

Does anyone have any examples of how that works? An answer to this question: Sublime Text 2: Setting file syntax inside the file itself (as Vim modelines) would work also.

EDIT

Ok, so tip one from a friend: http://manual.macromates.com/en/language_grammars

That uses the 'include' tag with a name to reference another language. That would work for me, but unfortunately I'd need to write a plugin to re-compile the file every time Sublime Text opened and re-write it with the various language extensions...Any chance y'all have a better idea?

Edit
Report