<p dir="auto">I'm looking for implementing proper highlighting for C# code using a server that inspects the code, and tokenizes it. The server part is already done, however, it seems that Atom doesn't support asynchronous Grammars (or I'm just not finding any documentation on it).</p>
<p dir="auto">Please add an API like <code class="notranslate">highlightFile</code> or <code class="notranslate">highlightLines</code> that accept a <code class="notranslate">Promise</code> (or has a callback), so that the tokenization can be asynchronous.</p>
<p dir="auto">I am looking to enhance the language definition for <code class="notranslate">typescript</code>, which is currently extremely lacking.  Typescript itself provides a highly efficient tokenizer service that could be used to provide a grammar.</p>
<p dir="auto">I have two questions.</p>
<p dir="auto">Is the public interface defined here <a href="https://atom.io/docs/api/v0.176.0/Grammar" rel="nofollow">https://atom.io/docs/api/v0.176.0/Grammar</a> what I would need to implement in order to register a custom grammar that the editor could use?</p>
<p dir="auto">It would be more convenient if the grammar was able to be called async rather than sync, in the public grammar api there is an <code class="notranslate">onDidUpdate</code> method, can I assume that this will be subscribed to by the editor so that I can request the tokenized lines from the typescript services and then notify an update such that the editor would apply the new tokenization?</p>