Home Download Buy Blog Forum Support

Developing Grammar Files on Sublime

Developing Grammar Files on Sublime

Postby kuroir on Sun Dec 18, 2011 9:08 pm

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? ).
kuroir
 
Posts: 71
Joined: Thu Sep 01, 2011 11:28 pm
Location: Mexico

Re: Developing Grammar Files on Sublime

Postby guillermooo on Sun Dec 18, 2011 9:12 pm

Hey kuroir,

See this:

http://sublimetext.info/docs/en/extensi ... xdefs.html
https://bitbucket.org/guillermooo/aaapackagedev

The script that converts .JSON-tmLanguage to .tmLanguage is actually a build system.
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: Developing Grammar Files on Sublime

Postby kuroir on Sun Dec 18, 2011 9:15 pm

Did I mention how much I love you? You're a true contributor to the community. Kudos for those awesome tools :)
kuroir
 
Posts: 71
Joined: Thu Sep 01, 2011 11:28 pm
Location: Mexico

Re: Developing Grammar Files on Sublime

Postby guillermooo on Sun Dec 18, 2011 9:20 pm

Getting rid of those XML files was a moral obligation, but cheers! ;)
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 4 guests