<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 25, 2013 at 8:30 PM, Jacob Carlborg <span dir="ltr"><<a href="mailto:doob@me.com" target="_blank">doob@me.com</a>></span> wrote:</div><div class="gmail_quote">

<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Instead we could create an API which allows TextMate to call external libraries, think libclang, to get autocompletion and the syntax highlight. This would allow for a accurate autocompletion based on the current symbol. This would be implemented as a plugin for TextMate using a common API making it possible to add this for any language.<br>

</blockquote><div><br></div><div style>While I guess internal changes would would be necessary to support a variety of parsers, I don't think increased autocompletion accuracy requires a new API, or am I mistaken? I think a bundle command could could just take the entire file contents plus the caret position as input for a script. Script could parse the source code by itself, then return some suggestions (using Dialog2).</div>

<div style><br></div><div style>Related: What bundles currently make use of Dialog2? I'd like to see it in action for myself.</div><div style><br></div><div style>--</div><div style>Meryn</div></div></div></div>