[Done] line continuation inconsistency

Post bugs related to the IDE here
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

[Done] line continuation inconsistency

Post by jassing »

code like

Code: Select all

h$ = "this"+
     "that"+
     "there"
     
Indentation works as expected

Now try with

Code: Select all

ProcedureReturn "this"+
"that"+
"there"
the continuation does not indent.
User avatar
Caronte3D
Addict
Addict
Posts: 1355
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: line continuation inconsistency

Post by Caronte3D »

You are the master of bug reports! :D
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: line continuation inconsistency

Post by jassing »

Caronte3D wrote: Wed May 10, 2023 8:49 am You are the master of bug reports! :D
Not sure about that. a lot of what I consider bugs are not.

I just noticed it does work if you do

Code: Select all

procedurereturn( "this"+
(the added '(' seems to trigger indentation properly)
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: line continuation inconsistency

Post by AZJIO »

works for me (asm and с compiler)

Code: Select all

Procedure.s FuncName()
    ProcedureReturn "this"+
      "that"+
      "there"
EndProcedure

Debug FuncName()
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: line continuation inconsistency

Post by jassing »

AZJIO wrote: Wed May 10, 2023 4:12 pm works for me (asm and с compiler)

Code: Select all

Procedure.s FuncName()
    ProcedureReturn "this"+
      "that"+
      "there"
EndProcedure

Debug FuncName()
Maybe it's IDE dependent (I'm using 6.02b3) -- but the indentation doesn't look right. it should be under "this"
Just to be clear, it's not that the code doesn't work - it's that the ide doesn't indent the continuation.
User avatar
Naheulf
User
User
Posts: 27
Joined: Sat Oct 18, 2014 8:37 am

Re: line continuation inconsistency

Post by Naheulf »

jassing wrote: Wed May 10, 2023 5:04 pm Maybe it's IDE dependent (I'm using 6.02b3) -- but the indentation doesn't look right. it should be under "this"
Just to be clear, it's not that the code doesn't work - it's that the ide doesn't indent the continuation.
The ide DOES indent the continuation. The issue is it shout NOT indent but should align this line.
Please correct me if my English is bad.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: line continuation inconsistency

Post by freak »

quidquid Latine dictum sit altum videtur
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: line continuation inconsistency

Post by Fred »

Thanks for the one line fix ! :)
Post Reply