Is there an event that I can hook into for when a tmLanguage file is used on the current file opened in the Sublime Text Plugin API?
I have this project https://github.com/samholmes/EJS.tmLanguage and I have this issue https://github.com/samholmes/EJS.tmLanguage/issues/7#issuecomment-37764728
What I need is to be able to run some code when a file is opened in Sublime that is an EJS file. This way I can check a variable to see which of the two tmLanguage files was last used and call set_syntax_file accordingly.