Does the API for plugins exposes any functionality to assign scopes to parts of text on demand?
I ask because I have a lexer written in c# for a custom language, and it would be way easier for me to port it to python than to a sublime-syntax definition.