On Tuesday, November 30, 2021 at 5:43:35 AM UTC-6 Edward K. Ream wrote:
> This Engineering Notebook post reviews the workings of Leo's importers so > that I will be clear about the details as I revise the python importers. > After a bit more thought, here is a higher level summary: 1. All incoming lines will have an ancestor that is not the top-level (kind == 'outer') node. This means that the outer node will contain only the following test: @others @language python @tabwidth -4 One could imaging different tabwidth values, but in practice -4 will suffice. 2. Crucially, no complex adjustments of indentation values are needed. The lws of @others directives, combined with the rules for creating nodes, ensures that this is so. In other words, gen_lines need only consider the relation between the indentation of the present line and the indentation of the relevant parent node. That's all! The rules described today are likely still valid, but the above two rules should guide the remaining coding effort. 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/097f2068-b5a0-4201-a83e-d6fd6130d0e9n%40googlegroups.com.
