Allow line splitting on all operators &, !, ~, <<, and >>

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Allow line splitting on all operators &, !, ~, <<, and >>

Post by Mistrel »

We can split on the bitwise OR but not on the other bitwise operators.

This works:

Code: Select all

Procedure A()
  ProcedureReturn A.a|
    %1000
EndProcedure
But not this:

Code: Select all

Procedure B()
  ProcedureReturn A.a&
    %1000
EndProcedure

Procedure C()
  ProcedureReturn A.a!
    %1000
EndProcedure

Procedure D()
  ProcedureReturn A.a~
    %1000
EndProcedure

Procedure E()
  ProcedureReturn A.a<<
    1
EndProcedure

Procedure F()
  ProcedureReturn A.a>>
    1
EndProcedure
I can't split this line to keep it under 80 characters:

Code: Select all

Procedure BitwiseQuad()
  ProcedureReturn Quad&
    %1000000000000000000000000000000000000000000000000000000000000000
EndProcedure
User avatar
Shield
Addict
Addict
Posts: 1021
Joined: Fri Jan 21, 2011 8:25 am
Location: 'stralia!
Contact:

Re: Allow line splitting on all operators &, !, ~, <<, and >

Post by Shield »

I wish we could just split the line wherever we want (using a line continue operator if syntactically required).
Otherwise, it would be nice to put the operators on the next line. Not expecting any change, though. :)

+1 for the request nonetheless.
Image
Blog: Why Does It Suck? (http://whydoesitsuck.com/)
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds
Post Reply