Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-02

Space preference for assignment

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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

Reply by email

Mattias Gaertner
to Micha Nelissen
Show quoted text 15 lines
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

Reply by email

Hans-Peter Diettrich
to Micha Nelissen: How can I specify I prefer spaces around assignment operators? In the options window I…
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

Reply by email

Alexander Klenin
to Hans-Peter Diettrich
Hans-Peter Diettrich wrote 11 lines
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

Reply by email