Just for the record avian-missing uses a preference to intercept the completion: 

https://github.com/elia/avian-missing.tmbundle/blob/master/Preferences/Completion:%20Character%20Class%20indifferent.tmPreferences

Elia

On Mar 26, 2013, at 9:56 AM, Jacob Carlborg <doob@me.com> wrote:

On 2013-03-26 00:39, Meryn Stol wrote:
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).

I guess the script could invoke libclang or similar. But it doesn't sound like a good idea to have to invoke an external process each time you want autocompletion and certainly not for syntax highlighting. That would be really, REALLY slow. A lexer needs to be extremely fast.

--
/Jacob Carlborg


_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate