<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div style="-webkit-text-size-adjust: auto; ">Just for the record avian-missing uses a preference to intercept the completion: </div><div style="-webkit-text-size-adjust: auto; "><br><span style="font-family: '.HelveticaNeueUI'; font-size: 15px; line-height: 19px; white-space: nowrap; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); -webkit-text-size-adjust: none; "><a href="https://github.com/elia/avian-missing.tmbundle/blob/master/Preferences/Completion:%20Character%20Class%20indifferent.tmPreferences">https://github.com/elia/avian-missing.tmbundle/blob/master/Preferences/Completion:%20Character%20Class%20indifferent.tmPreferences</a></span></div><div><font face=".HelveticaNeueUI"><span style="font-size: 15px; line-height: 19px; white-space: nowrap; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);"><br></span></font><span style="-webkit-text-size-adjust: auto;">Elia</span></div><div style="-webkit-text-size-adjust: auto; "><br>On Mar 26, 2013, at 9:56 AM, Jacob Carlborg <<a href="mailto:doob@me.com">doob@me.com</a>> wrote:<br><br></div><blockquote type="cite" style="-webkit-text-size-adjust: auto; "><div><span>On 2013-03-26 00:39, Meryn Stol wrote:</span><br><blockquote type="cite"><span>While I guess internal changes would would be necessary to support a</span><br></blockquote><blockquote type="cite"><span>variety of parsers, I don't think increased autocompletion accuracy</span><br></blockquote><blockquote type="cite"><span>requires a new API, or am I mistaken? I think a bundle command could</span><br></blockquote><blockquote type="cite"><span>could just take the entire file contents plus the caret position as</span><br></blockquote><blockquote type="cite"><span>input for a script. Script could parse the source code by itself, then</span><br></blockquote><blockquote type="cite"><span>return some suggestions (using Dialog2).</span><br></blockquote><span></span><br><span>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.</span><br><span></span><br><span>-- </span><br><span>/Jacob Carlborg</span><br><span></span><br><span></span><br><span>_______________________________________________</span><br><span>textmate mailing list</span><br><span><a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a></span><br><span><a href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a></span><br></div></blockquote></body></html>