Hi,
what is the best way to extend an existing syntax definition? Say I am working on a Javascript file with the promise library Bluebird and I use coroutine for my function definitions:
var myFunction = Promise.coroutine(function* (x + y) {
})
The default syntax doesn’t recognize that as a function definition, it doesn’t get indexed as a symbol etc. What is the best way to extend the existing syntax definition? It would be great if I could do that without overwriting the existing definition so that updates to the ST javascript syntax don’t require any changes for my extended definition. It would even be better if I could extend an existing syntax without creating a new one that imports ST’s definition.
Thanks!