On Tuesday, August 12, 2025 at 7:06:44 AM UTC-5 Edward K. Ream wrote:

This ENB discusses possible fixes to #4419 
<https://github.com/leo-editor/leo-editor/issues/4419>. It is mostly notes 
to myself and discusses experimental ideas. 


A few other notes:

I usually try to fix issues using the smallest amount of code. In this 
case, however, the possibilities of significantly improving code outweigh 
my usual practice. 

The Python importer never generates nested defs (functions or methods).  So 
unless a def is the last method of a class, defs always continue to the 
next class or def *at the same indentation or lower.* The legacy importer 
ignored this invariant.

The Rust importer already handles underindented lines fairly well because 
of Rust's weird multi-line string literals.

<rant>Something like textwrap.dedent isn't good enough for Rust cowboys. Oh 
no, let's complicate the syntax!</rant>

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 visit 
https://groups.google.com/d/msgid/leo-editor/4360a00c-1f00-445e-9279-c7816e8ec267n%40googlegroups.com.

Reply via email to