lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Doug Rogers wrote:
> Perhaps I've missed something...

Ah, now I see it. Any identifiers - such as not_nl (not a newline in an
LPEG construct) are seen as an identifier by the indenter code. So when
I write:

   nl = lpeg.S('\n')
   not_nl = 1 - nl

The indenter wants to do this:

   nl = lpeg.S('\n')
      not_nl = 1 - nl

because it thinks I'm appending an operator to the end of the previous
statement. And "end_" will be outdented from the previous block because
the indenter thinks I'm ending the outer block.

Still, I think I prefer this - until I can dig into the elisp to fix it.

Doug

-- 
Innovative Concepts, Inc. www.innocon.com 703-893-2007 x220