CodeEditSourceEditor icon indicating copy to clipboard operation
CodeEditSourceEditor copied to clipboard

👀 Missing Languages

Open lukepistrol opened this issue 3 years ago • 5 comments

There are several language grammars available for tree-sitter. Checked items have SPM already implemented.

* Some of them don't yet have a highlights.scm file included and thus syntax highlighting will not work.

Important to know is that some language grammars depend on another grammar to function properly (e.g.: C++ depends on the C grammar). Therefore the highlights.scm files need to be concatenated when run.

This can also happen when there are different flavors available (e.g: JavaScript & JSX). In this case there is an additional highlights-jsx.scm file located in the JavaScript's grammar queries folder.

Add new Languages

In order to make it a little easier to add SPM support to grammars, I wrote an article in the documentation: Add languages

lukepistrol avatar Jun 02 '22 14:06 lukepistrol

@lukepistrol, Are we planning to add kotlin? I'm willing to contribute to it

ahmed3elshaer avatar Jun 11 '22 17:06 ahmed3elshaer

@ahmed3elshaer We should be including kotlin. We would love the contribution! Feel free to reach out to @lukepistrol in the #editor channel in our Discord server to coordinate.

austincondiff avatar Jun 17 '22 18:06 austincondiff

@ahmed3elshaer the Kotlin grammar is still in development and does not have a highlights.scm file yet for syntax highlighting. Feel free to contribute on their repo.

lukepistrol avatar Jun 17 '22 18:06 lukepistrol

@austincondiff thanks for the clarification 👍

ahmed3elshaer avatar Jun 19 '22 23:06 ahmed3elshaer

@ahmed3elshaer the Kotlin grammar is still in development and does not have a highlights.scm file yet for syntax highlighting. Feel free to contribute on their repo.

I already started planning this, thanks for the referral 👌🏻

ahmed3elshaer avatar Jun 19 '22 23:06 ahmed3elshaer