Annoying Code Comment issue

Annoying Code Comment issue

Hello, 

Let me start by saying the Creator application builder system and deluge code are absolutely amazing. I have been able to build an powerful application from scratch in less a month.

My question is related to being able to write comments in my deluge code for readability. When I write a comment right after an "IF" state state the IF statement somehow absorbs the comment to within the "}". this is very annoying and makes commenting code with a lot of conditional statements hard. For example if I have some code that looks like this:

  1. if (test = "1")
    {
       input.test = 5;
    }
    //next set test 2
    input.test2 = 5;
after I hit save it then looks like this

  1. if (test = "1")
    {
       input.test = 5;
        //next set test2
    }
    input.test2 = 5;
Note that the comment is now in the wrong place. Is there anything I can do to stop this from happening?
   
Please point me in the right direction
   
David