Switching to leo-editor... On Wed, Aug 4, 2010 at 8:43 AM, Edward K. Ream <[email protected]> wrote:
> Using regex's would not, for example, simplify the isSectionLine > method in the ini importer. It's not just recognizing the start of a > new section, it's setting various indices. But these are implementation details, right? I'm not suggesting modifying the current implementation in any way. Ḯm suggesting that there could be a convenience layer that you just give a node-splitting regexp and it would be able to do the import. For ini files it would be like ^\[.*\]$. Why should someone doing an ini importer care about ivars and whatnot? BTW, if there was regexp based importer you could specify the import syntax right in the leo file, without writing any python. Something like @importer *.ini - @nodesplit ^\[.*\]$ -- Ville M. Vainio @@ Forum Nokia -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
