Re:A new syntax definition format for Sublime
by pmalynin on Wednesday April 08, 2015 @02:23PM
(#9342754)
So pretty much the same thing we had before, except instead of writing JSON you write YAML
[ Parent
| on HN ]
Re:A new syntax definition format for Sublime
by ben336 on Wednesday April 08, 2015 @02:41PM
(#9342858)
previously language syntax used TextMates xml based tmLanguage files for syntax highlighting.
Example: https://github.com/Benvie/JavaScriptNext.tmLanguage/blob/mas...
Re:A new syntax definition format for Sublime
by pmalynin on Wednesday April 08, 2015 @03:26PM
(#9343240)
Well, sure it 'uses" xml bases representation, but you can actually write the syntax in JSON and Sublime Text will compile it down to XML.
Example: https://github.com/Nessphoro/sublimeassembly/blob/master/Ass...
Output: https://github.com/Nessphoro/sublimeassembly/blob/master/Ass...
Re:A new syntax definition format for Sublime
by ksherlock on Wednesday April 08, 2015 @03:37PM
(#9343312)
https://github.com/SublimeText/AAAPackageDev lets you create it with YAML. If nothing else, not having to escape and quote your regular expressions seems like a winning proposition.