PR #3330 <https://github.com/leo-editor/leo-editor/pull/3330> created new 
methods in the base Importer class and rewrote the c++ importer.

PR #3345 <https://github.com/leo-editor/leo-editor/pull/3345> (just merged) 
fixed various bugs in PR #3330 and converted the c++, python, cython, and 
coffeescript importers to the new importer framework.

*More brags*

The importers for cython and coffeescript are almost nothing but top-level 
regex patterns for *python_i.find_blocks*. 

The importers for c++ and python *only* override *i.find_blocks*, and these 
overrides are straightforward.

The highlight of the new code is *python_i.find_end_of_block*. A simple 
hack appends all comments and empty lines to the end of the block. This 
kind of hack was *impossible* in all previous iterations of Leo's importers.

*Summary*

Work is going faster than expected. Much of the work involved adjusting the 
unit tests to reflect the improved code!

I continue rewriting importers until none of the old importer code remains.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/9dcb00d7-bb5b-454b-a23e-d337910a13fen%40googlegroups.com.

Reply via email to