Re: [Lazarus] Space preference for assignment

2009-02-09 Thread Alexander Klenin
On Mon, Feb 9, 2009 at 11:17, Hans-Peter Diettrich drdiettri...@aol.com wrote:
 Micha Nelissen schrieb:

 How can I specify I prefer spaces around assignment operators? In the
 options window I can select several tokens, but not assignment operator,
 or did I miss it?

 You can selecet symbols, including the assignment operator.

 Unfortunately a couple of other tokens (punctuators, parentheses...) are
 also classified as symbols. I suggest to separate true operators
 from other symbol tokens, and to add an according option.

Parentheses should already be separated since
http://bugs.freepascal.org/view.php?id=12781
I did this precisely for the reason you stated.

-- 
Alexander S. Klenin
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Space preference for assignment

2009-02-08 Thread Micha Nelissen
Hi,

How can I specify I prefer spaces around assignment operators? In the 
options window I can select several tokens, but not assignment operator, 
or did I miss it?

   A:=B+C;

to

   A := B+C;

How about operators?

   A := B + C;

Thanks,

Micha
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Space preference for assignment

2009-02-08 Thread Mattias Gaertner
On Sun, 08 Feb 2009 23:06:16 +0100
Micha Nelissen mi...@neli.hopto.org wrote:

 Hi,
 
 How can I specify I prefer spaces around assignment operators? In the 
 options window I can select several tokens, but not assignment
 operator, or did I miss it?
 
A:=B+C;
 
 to
 
A := B+C;
 
 How about operators?
 
A := B + C;

Insert space before and after 'symbols'.

Mattias
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Space preference for assignment

2009-02-08 Thread Micha Nelissen
Mattias Gaertner wrote:
 How about operators?

A := B + C;
 
 Insert space before and after 'symbols'.

Thanks. Thought that did meant variable names and such.

Micha
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Space preference for assignment

2009-02-08 Thread Hans-Peter Diettrich
Micha Nelissen schrieb:

 How can I specify I prefer spaces around assignment operators? In the 
 options window I can select several tokens, but not assignment operator, 
 or did I miss it?

You can selecet symbols, including the assignment operator.

Unfortunately a couple of other tokens (punctuators, parentheses...) are
also classified as symbols. I suggest to separate true operators
from other symbol tokens, and to add an according option.

DoDi


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus