typescript.lang: add support for decorators
First of all: @jefferyto, great work on the re-implementation of the JS/TS highlighting and I'm sorry that I only got to test it now (after the merge).
Everything seems to work fine for me; the only issue that I found is the lack of support for decorators (which aren't a standard language feature, so it's not unexpected that the support is missing).
Frameworks such as Angular make heavy use of this not-yet-standerdised construct, and TypeScript provides support for it via the experimentalDecorators
flag.
This is the only change that seems like a regression to me, since although before I still didn't get syntax highlighting on the decorator itself, I would still get highlights on the "content" of the decorator. For example, in the following image, the false
would be properly highlighted.
Here is the proposal, which should contain the syntax changes: https://github.com/tc39/proposal-decorators
Babel's syntax definition and plugin might also prove useful: https://babeljs.io/docs/en/babel-plugin-syntax-decorators/, https://babeljs.io/docs/en/babel-plugin-proposal-decorators