Despite reading Syntax highlighting using existing tokenizer, 14927 and similar posts, I’m still at a loss for creating an Atom grammar based on an external tokenizer.
Specifically, I’d like to use the same internal tooling used by Xcode to highlight Swift code from within Atom for more accurate results than are possible through cson specifications.
I’ve built a command-line tool to expose this tokenization, but now I’d like to hook it up to Atom. For reference, the command line tool can be found here: https://github.com/jpsim/SourceKitten
The tokens are returned in the simplest form necessary for syntax highlighting: offset, length & type.
I’m sorry if this is too vague a request, it feels like it should be quite simple to do given better knowledge of the inner workings of Atom grammars, but it’s a bit outside my reach.
Thanks for reading,
A hopeful package builder