Commit a15a119e authored by Arpad Lovassy's avatar Arpad Lovassy
Browse files

bugfix: Enter puts * after line comment


Signed-off-by: Arpad Lovassy's avatarzlovarp <arpad.lovassy@semcon.com>
parent 576904ea
......@@ -54,11 +54,10 @@ public final class SmartIndentAfterNewLineAutoEditStrategy extends GeneralTITANA
IDocumentExtension3 extension= (IDocumentExtension3) document;
final ITypedRegion region = extension.getPartition(extension.getPartitionings()[0], command.offset, false);
if (region.getType().equals(PartitionScanner.TTCN3_COMMENT)) {
final IRegion lineRegion = document.getLineInformation(document.getLineOfOffset(command.offset));
final String lineText = document.get(lineRegion.getOffset(), lineRegion.getLength()).trim();
if (! lineText.startsWith("//")) {
final String regionText = document.get(region.getOffset(), region.getLength()).trim();
if (! regionText.startsWith("//")) {
isInsideComment = true;
if (lineText.startsWith("/*")) {
if (regionText.startsWith("/*")) {
isExtraSpace = true;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment