Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👀 Missing Languages #10

Open
lukepistrol opened this issue Jun 2, 2022 · 16 comments
Open

👀 Missing Languages #10

lukepistrol opened this issue Jun 2, 2022 · 16 comments
Labels
enhancement New feature or request epic help wanted Extra attention is needed

Comments

@lukepistrol
Copy link
Member

lukepistrol commented Jun 2, 2022

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

Supported languages

See the following section in the README:

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 lukepistrol added the enhancement New feature or request label Jun 2, 2022
@lukepistrol lukepistrol pinned this issue Jun 2, 2022
@lukepistrol lukepistrol added the help wanted Extra attention is needed label Jun 4, 2022
@ahmed3elshaer
Copy link

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

@austincondiff
Copy link
Contributor

@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.

@lukepistrol
Copy link
Member Author

lukepistrol commented Jun 17, 2022

@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.

@ahmed3elshaer
Copy link

@austincondiff thanks for the clarification 👍

@ahmed3elshaer
Copy link

@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 👌🏻

@austincondiff austincondiff changed the title Missing Languages 👀 Missing Languages Jun 24, 2022
@hamzaplojovic
Copy link

Is TypeScript and TSX coming soon?

@austincondiff
Copy link
Contributor

austincondiff commented Oct 1, 2022

@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.

@hamzaplojovic
Copy link

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

@olivermt
Copy link

olivermt commented Oct 2, 2022

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

@lukepistrol
Copy link
Member Author

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

@BrendanThompson
Copy link

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

@MikePendo
Copy link

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

@lukepistrol
Copy link
Member Author

@MikePendo this might very much be related to this:

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

@lukepistrol
Copy link
Member Author

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

@lukepistrol lukepistrol transferred this issue from CodeEditApp/CodeEditSourceEditor Nov 13, 2022
@lukepistrol lukepistrol changed the title 👀 Missing Languages 👀 [epic] Missing Languages Jan 16, 2023
@thecoolwinter thecoolwinter moved this from 🆕 New to 🚧 Blocked in CodeEdit Project Feb 15, 2023
@thecoolwinter thecoolwinter moved this from 🚧 Blocked to 📋 Todo in CodeEdit Project Feb 15, 2023
@austincondiff austincondiff changed the title 👀 [epic] Missing Languages 👀 Missing Languages Feb 18, 2023
@mattpilott
Copy link

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!

@iparr
Copy link

iparr commented Apr 4, 2023

Twig is popular too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request epic help wanted Extra attention is needed
Projects
Status: 📋 Todo
Development

No branches or pull requests

9 participants