[TxMt] Re: Help funding my TextMate 2 code sprint
Jacob Carlborg
doob at me.com
Tue Mar 26 08:56:16 UTC 2013
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
More information about the textmate
mailing list