atom / highlights

Syntax highlighter
https://atom.github.io/highlights
MIT License
530 stars 54 forks source link

[Feature request] Ability to load a cson file/js object directly as grammar? #39

Open chenglou opened 8 years ago

chenglou commented 8 years ago

Hi. I was wondering if we could, aside from requireGrammarSync, expose an API that directly takes in the CSON file or a javascript object. Our use-case is to programmatically include such object, so a global require won't do here.

Alternatively, is there any plan to also load atom's loaded grammars? That'd solve our use-case too.

Thanks.