atom / highlights

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

Creating a Grammar which calls a function for parsing? #30

Closed keplersj closed 8 years ago

keplersj commented 8 years ago

With the current APIs would it be possible to create an Atom grammar which calls a function when tokenizing a file, instead of defining regexes in a JSON/CSON file? If possible I would be very interesting in creating an Atom package which using libclang to tokenize C-family files.

keplersj commented 8 years ago

Nevermind. I think I've figured out what must be done.