CodeEditLanguages icon indicating copy to clipboard operation
CodeEditLanguages copied to clipboard

👀 Missing Languages

Open lukepistrol opened this issue 3 years ago • 16 comments

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

Supported languages

See the following section in the README:

  • https://github.com/CodeEditApp/CodeEditLanguages#supported-languages

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

Is TypeScript and TSX coming soon?

hamzaplojovic avatar Oct 01 '22 13:10 hamzaplojovic

@hamzaplojovic if it is not yet on the list, it definitely should be. Here is the tree-sitter repo for it... https://github.com/tree-sitter/tree-sitter-typescript.

Edit: It looks like it is on the list but not yet implemented. Feel free to take a stab at it, otherwise it will be coming soon.

austincondiff avatar Oct 01 '22 15:10 austincondiff

I will try, but I just wanted to remind you of one of the most popular ones 😊

hamzaplojovic avatar Oct 01 '22 16:10 hamzaplojovic

Just a tip that Elixir is probably good to get on this list: https://github.com/elixir-lang/tree-sitter-elixir

olivermt avatar Oct 02 '22 08:10 olivermt

Typescript and TSX are complicated. I have tried it already but I think it depends on javascript and for some reason adding it as a parentLanguage in CodeLanguage breaks the highlighting for TS & TSX.

The link to my spm branch on tree-sitter-typescript: https://github.com/lukepistrol/tree-sitter-typescript/tree/feature/spm

lukepistrol avatar Oct 05 '22 08:10 lukepistrol

It would be amazing to see Terraform/HCL here too 😃

BrendanThompson avatar Oct 24 '22 09:10 BrendanThompson

is it possible to fix the doc link? This package is fully documented here. and that link: I wrote an article in the documentation: Add languages Thanks

MikePendo avatar Nov 12 '22 17:11 MikePendo

@MikePendo this might very much be related to this:

  • https://github.com/CodeEditApp/CodeEditLanguages/issues/1

We're not the only ones having this issue as there is already a ticket on the official swift-docc-plugin repo:

  • https://github.com/apple/swift-docc-plugin/issues/29

lukepistrol avatar Nov 12 '22 17:11 lukepistrol

@MikePendo the links should now be working again! Fixed the issues for now!

lukepistrol avatar Nov 12 '22 21:11 lukepistrol

Be great to support:

  • Svelte
  • SCSS
  • SVG

All the web work i do is svelte and until the above is available i cant really get stuck in to code edit for real work, happy to test and provide detailed feedback for any of these!

mattpilott avatar Mar 24 '23 11:03 mattpilott

Twig is popular too.

iparr avatar Apr 04 '23 12:04 iparr