[TxMt] Re: Help funding my TextMate 2 code sprint
Elia Schito
elia at schito.me
Tue Mar 26 09:26:23 UTC 2013
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 at 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 at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20130326/01ff7a38/attachment.html>
More information about the textmate
mailing list