The officially documented way to contribute syntax highlighting support for new languages seems to be by wrapping Textmate .tmlanguage grammars.
I'm curious if this is also the mechanism that vscode uses to support the inbuilt languages. There also seems to be various tokenizers for those, like in https://github.com/Microsoft/vscode/blob/master/src/vs/editor/standalone-languages/csharp.ts .
I'm now wondering if vscode uses two different approaches.
If yes, which advantages and disadvantages gives the tokenizer based approach and is it also available for extensions?
If no, what else is the use-case for this integrated tokenizers?
The officially documented way to contribute syntax highlighting support for new languages seems to be by wrapping Textmate .tmlanguage grammars.
I'm curious if this is also the mechanism that vscode uses to support the inbuilt languages. There also seems to be various tokenizers for those, like in https://github.com/Microsoft/vscode/blob/master/src/vs/editor/standalone-languages/csharp.ts .
I'm now wondering if vscode uses two different approaches.
If yes, which advantages and disadvantages gives the tokenizer based approach and is it also available for extensions?
If no, what else is the use-case for this integrated tokenizers?