Problems with New Language Mode

Aaron Hsu arcfide at sacrificumdeo.net
Tue Apr 24 20:55:01 CEST 2007


On Tue, 24 Apr 2007 07:59:54 -0500, Joerg Fischer <jf505 at gmx.de> wrote:

>> Here's an algorithm:
> I'll have a look.

I have discovered a bit of a problem in the algorithm I gave you. There  
are references to the current line and determining arguments. It's not  
clear what current line means. What current line means, in the context of  
determining arguments and how far in the indent should be, is the line  
which contains the first unclosed parenthesis.

Also, if I make NEdit automatically insert the closing parentheses, then  
it is important that this algorithm ensure that reading backwards to find  
an unclosed parenthesis is taken only in the context from the place at  
which the newline is entered backwards, so that it ignores the closing  
parentheses which are further ahead in the document.

-- 
Aaron Hsu <arcfide at sacrificumdeo.net>
http://www.aaronhsu.com | XMPP/Gtalk: arcfide at xmpp.us
(703) 597-7656 | "No one could make a greater mistake than he who did  
nothing because he could do only a little." - Edmund Burke


More information about the Discuss mailing list