Tree Sitter for VSCode

This extension gives VSCode support for tree-sitter syntax coloring. Examples with tree-sitter coloring on the right:

Go

Rust

C++

Ruby

Javascript / Typescript

Contributing

Fixing colorization of an existing language

If you see something getting colored wrong, or something that should be colored but isn't, you can help! The simplest way to help is to create an issue with a simple example, a screenshot, and an explanation of what is wrong.

You are also welcome to fix the problem yourself and submit a PR. Colorization is performed by the various colorLanguage(x, editor) functions in src/colors.ts . When working on the colorization rules, please keep in mind two core principles:

Good colorization is consistent. It's better to not color at all than to color inconsistently. Good colorization is selective. The fewer things that we color, the more emphasis the color gives.

Adding a new language

It's straightforward to add any language with a tree-sitter grammar.