Re: [Geany-devel] Parentheses auto-indentation

2010-06-12 Thread Lex Trotman
On 13 June 2010 03:09, Colomban Wendling wrote: > Le 09/06/2010 02:48, Lex Trotman a écrit : Also brace_match ability to go forward and backward is wasted since it is only ever called from close_brace which AFAICT is only ever called with the current character a } >>>

Re: [Geany-devel] Parentheses auto-indentation

2010-06-12 Thread Colomban Wendling
Le 09/06/2010 02:48, Lex Trotman a écrit : >>> Also brace_match ability to go forward and backward is wasted since it >>> is only ever called from close_brace which AFAICT is only ever called >>> with the current character a } >>> >>> >>> Why brace_match() uses the character at (pos - 1

Re: [Geany-devel] Parentheses auto-indentation

2010-06-08 Thread Lex Trotman
On 9 June 2010 10:08, Colomban Wendling wrote: > Le 08/06/2010 04:34, Lex Trotman a écrit : >> On 8 June 2010 00:43, Colomban Wendling wrote: >> >>> How to know if a character is or not part of a comment, string or so? (e.g. >>> should be interpreted as a syntactic element by itself) I need this

Re: [Geany-devel] Parentheses auto-indentation

2010-06-08 Thread Colomban Wendling
Le 08/06/2010 04:34, Lex Trotman a écrit : > On 8 June 2010 00:43, Colomban Wendling wrote: > >> How to know if a character is or not part of a comment, string or so? (e.g. >> should be interpreted as a syntactic element by itself) I need this to find >> the parenthesis -- and no, I can't do th

Re: [Geany-devel] Parentheses auto-indentation

2010-06-07 Thread Lex Trotman
On 8 June 2010 00:43, Colomban Wendling wrote: > Hi there! > > I'd very much like to see some auto-parentheses indentation in Geany. I mean > that this kind of indentation would be auto-generated on typing: > if (cond1 && >     fun_call (param1, >   param2) && >     cond3) > { >   anot

Re: [Geany-devel] Parentheses auto-indentation

2010-06-07 Thread Colomban Wendling
Le 07/06/2010 16:43, Colomban Wendling a écrit : > >1. How to know if a character is or not part of a comment, string > or so? (e.g. should be interpreted as a syntactic element by > itself) I need this to find the parenthesis -- and no, I can't > do the same than brace_match(

[Geany-devel] Parentheses auto-indentation

2010-06-07 Thread Colomban Wendling
Hi there! I'd very much like to see some auto-parentheses indentation in Geany. I mean that this kind of indentation would be auto-generated on typing: if (cond1 && fun_call (param1, param2) && cond3) { another_call (param1, param2); /* and so on */ } Thi