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

What is the relation between Scala.tmLanguage.json and Scala.tmLanguage.ts #205

Closed
Sciss opened this issue May 29, 2021 · 3 comments
Closed

Comments

@Sciss
Copy link

Sciss commented May 29, 2021

It seems to be as if GenerateTmLanguageFile.ts would synthesize Scala.tmLanguage.ts from Scala.tmLanguage.json, but some recent commit is directly on the TypeScript file. Is the JSON the ground truth, or the TypeScript?

@Sciss Sciss changed the title What is the relation Scala.tmLanguage.json between and Scala.tmLanguage.ts What is the relation between Scala.tmLanguage.json and Scala.tmLanguage.ts May 29, 2021
@MaximeKjaer
Copy link
Contributor

The JSON contains the latest released version, but the TypeScript contains the latest development work. We build the JSON from the TS at every release.

You can read a bit more info in the contributing docs, and there's also some discussion as to why we do this in #23.

@Sciss
Copy link
Author

Sciss commented May 31, 2021

Thanks. And how does it distinguish Scala 2 and 3, or is this only a Scala 2 grammar at the moment?

@MaximeKjaer
Copy link
Contributor

Sorry, I replied over at #204 before I saw the question here, but here's the response to that question:

We make no distinction between Scala 2 and Scala 3, the highlighter aims to work for both. It would be very difficult for our grammar to be able to distinguish one from the other, so we make no attempt to do so.

@Sciss Sciss closed this as completed May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants