Skip to content

Syntax highlighting: Textmate grammars vs. inbuilt mechanism? #174

@Matthias247

Description

@Matthias247

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions