> Datum: Wed, 27 Jul 2011 18:25:23 +1000 > Von: Benjamin Tolputt <[email protected]> > An: bf-blender developers <[email protected]> > CC: Matt Ebb <[email protected]> > Betreff: Re: [Bf-committers] Syntax Highlighting & Alternate Languages
> I'm pretty sure that putting the parsing code into the Python layer > would slow the syntax highlighting code quite dramatically and, as such, > is not likely to get the core team approval (let alone be appreciated by > the users). I like the idea of that kind of flexibility, but the code is > currently quite low level & speedy (integer comparisons from a char > array). The speed hit to jump up to Python (with the string passing, > Python string comparisons, and return path) is most likely going to rule > this out almost completely. How about something like vim does: do the matching in C, but set the parameters (i.e. regex strings) from a scripting language? Speed and flexibility at the same time. > That said, in terms of the priority request, I'm willing to do the > low-level code stuff myself. This isn't a request for other developers > to code something for me, it is a request to pre-check whether it is > worth putting the code together myself. It is contained in perhaps two > files, there are no changes to the API required, and it is very close to > a copy/paste job with alternate means of detecting comments, strings, > and special strings. The changes are small, there is no performance > penalty, and the upside is (for people like myself) quite high. If I > cannot get approval for this - I don't think integrating Python would be > worth mentioning ;) While you're at this: How about auto-reloading from external files? Then people can use their external editor and blender automatically gets the changes. -- Dr. Lars Krueger Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
