Sublime Forum

Developing Grammar Files on Sublime

#1

I’m aware that Sublime uses the TextMate tmLanguage file, which AFAIK is just a XML Equivalent of a JSON File (which you’ll see when you edit the file in the TMBundle).

I’m wondering if someone made a workflow to make Grammar Files on Sublime? I’m interested on working my SCSS Grammar ( and others ) directly within Sublime. My idea of a awesome workflow would be to work directly with a JSON file instead of having to waste time with XML files, and make Sublime apply the grammar on save.

Any chance anyone can point me out to the right direction ( and possibly help? ).

0 Likes

#2

Hey kuroir,

See this:

sublimetext.info/docs/en/extensi … xdefs.html
bitbucket.org/guillermooo/aaapackagedev

The script that converts .JSON-tmLanguage to .tmLanguage is actually a build system.

0 Likes

#3

Did I mention how much I love you? You’re a true contributor to the community. Kudos for those awesome tools :smile:

0 Likes

#4

Getting rid of those XML files was a moral obligation, but cheers! :wink:

0 Likes