Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Turn TextMate grammar to json #140

@mickaelistria

Description

@mickaelistria

Several IDEs like VSCode or Eclipse IDE are reusing (or planning to reuse) the TextMate grammar defined in rust.cson. However, it seems like those cannot parse .cson files, so they translate it to .json: https://github.com/Microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/rust/syntaxes/rust.tmLanguage.json .
Would it be possible to make the grammar in this repo directly a .json file? Would there be anything lost if doing so? Moving to .json has several benefits like easier reusability in other tools, but also as .json has more and better edition support across various editors/IDEs which make it easier to maintain than .cson in general.
If this is acceptable, then it seems mostly a matter of just pulling the VSCode translation and cleaning the info messages.

cc @aeschli @Boereck

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions