29419Re: % matching for Python
- Aug 6, 2002Benji Fisher wrote:
> Only small changes for now. Unless someone wants to see it, I will notI changed my mind; the changes were not so minor. Especially, since I now
> post my next version until the :omap's work, maybe tomorrow.
treat empty lines as comments, I revised my idea of what starts a new block.
(In the example Python script I was looking at, there were empty lines
separating blocks. I assumed that, having indent 0, they indicated the
top-level block.) I now assume that in
(where foo and bar have the same indent) then "bar" starts a new block unless it
is recognized as a continuation: for example, if "foo" is "if" and "bar" is
"elif" or "else".
Please test this version with nested blocks, non-aligned comment lines,
empty (and blank) lines, etc. If you like it, I will add the :omap's tomorrow.
- << Previous post in topic Next post in topic >>