Page 1 of 1

[Done] line continuation inconsistency

Posted: Wed May 10, 2023 4:50 am
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.

Re: line continuation inconsistency

Posted: Wed May 10, 2023 8:49 am
by Caronte3D
You are the master of bug reports! :D

Re: line continuation inconsistency

Posted: Wed May 10, 2023 2:10 pm
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)

Re: line continuation inconsistency

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

Code: Select all

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

Debug FuncName()

Re: line continuation inconsistency

Posted: Wed May 10, 2023 5:04 pm
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.

Re: line continuation inconsistency

Posted: Fri May 12, 2023 11:44 am
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.

Re: line continuation inconsistency

Posted: Sun May 14, 2023 10:15 pm
by freak

Re: line continuation inconsistency

Posted: Wed May 17, 2023 10:41 am
by Fred
Thanks for the one line fix ! :)