Eugleo / magic-racket

The best coding experience for Racket in VS Code
https://marketplace.visualstudio.com/items?itemName=evzen-wybitul.magic-racket
GNU General Public License v3.0
204 stars 27 forks source link

tmLanguage version of the syntax? #37

Closed jason5122 closed 3 years ago

jason5122 commented 3 years ago

Hi, is there any way I can build the included Racket syntax as a .tmLanguage? I would like to use this syntax in Sublime Text, which only supports the XML version of .tmLanguage and not .tmLanguage.json. Thanks for reading!

Eugleo commented 3 years ago

Hey, I’m not sure to be honest! Try to search for yaml->xml or json-> converters. You might even need to edit the results manually.

jason5122 commented 3 years ago

Thanks for the quick reply, I'll give that a try. Should I get started with the racket.yaml source or the built racket.tmLanguage.json for the best results?

Eugleo commented 3 years ago

The json files are generated from the yaml, both should be virtually identical. Depends on what will be the easiest to transition to xml (my bet is on json), but honestly, I have no idea.

    1. 2021 v 22:32, Jason Han notifications@github.com:

 Thanks for the quick reply, I'll give that a try. Should I get started with the racket.yaml source or the built racket.tmLanguage.json for the best results?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

jason5122 commented 3 years ago

Hi, would you mind trying out the conversion yourself and verifying the behavior? I am really struggling with converting the tmLanguage.json syntax file. I've been at it for hours and I just want a working tmLanguage file. When I do the conversion, the resulting XML isn't behaving the same as the original JSON, and I have no clue why. If you'd like, I can add a bounty to this, just let me know how much.

Original

Screen Shot 2021-02-27 at 3 53 08 AM

Converted

Screen Shot 2021-02-27 at 3 52 42 AM