Bug 519373 - Broken indentation after "\\"
Summary: Broken indentation after "\\"
Status: REOPENED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: titan.plugins (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jeno Attila Balasko CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-07 05:54 EDT by viktor vereb CLA
Modified: 2021-04-23 10:57 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description viktor vereb CLA 2017-07-07 05:54:25 EDT
Trying to use auto indentation with Ctrl+i, but the following line messes it up:
v_modified := f_int_replaceSubstrings(v_string, "\\", "");

We found, that "\\" somehow breaks the indentation, and every row after that starts at the 5th position.
Comment 1 Jeno Attila Balasko CLA 2017-08-08 05:06:46 EDT
The error does not occur anymore in titan.EclipsePlug-ins 6.2.0
It has been corrected in early versions.
The test source code is as follows.

//Bug 519373 - Broken indentation after "\\"

module AutoIndentTest {

type component CT {
}

function f(in charstring p_1, in charstring p_2, in charstring p_3) return integer {
  return 1;
}

const charstring c_cs := "viktor vereb"
function tc_1() runs on CT {
  var integer v_modified := 0;
  v_modified := f(c_cs, "\\","");
  v_modified:= 2;
}

control{

}

}
Comment 2 Jeno Attila Balasko CLA 2017-08-08 05:09:35 EDT
Already corrected
Comment 3 Jeno Attila Balasko CLA 2017-08-08 05:18:02 EDT
The error can be reproduced by this code. The difference is the commented line "//preconditions".

//Bug 519373 - Broken indentation after "\\"

module AutoIndentTest {

type component CT {
}

function f(in charstring p_1, in charstring p_2, in charstring p_3) return integer {
  return 1;
}

const charstring c_cs := "viktor vereb"
function tc_1() runs on CT {
  var integer v_modified := 0;
  v_modified := f(c_cs, "\\","");
    //preconditions
    v_modified:= 2;
    }

    control{

    }

  }
Comment 4 Denis Roy CLA 2021-04-23 10:57:47 EDT
This bug was migrated to GitLab: https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues