}
}
}
break;
case ';':
section = new Comment(Type.A);
section.setOffset(position);
i = content.indexOf(lineSeparator, position);
if (i > position) {
position = i - 1;
section.setEnd(i);
} else {
// line separator is not found
moveFarForward();
section.setEnd(content.length());
}
break;
case '/': // similar with case ';'
moveForward();
if (!moveSuccess) {
break;
}
if (character == '/') {
section = new Comment(Type.CPP);
section.setOffset(position - 1);
i = content.indexOf(lineSeparator, position);
if (i > position) {
position = i - 1;
section.setEnd(i);
} else {
// line separator is not found
moveFarForward();
section.setEnd(content.length());
}
} else {
if (character == '*') {
section = new Comment(Type.C);
section.setOffset(position - 1);
boolean flag = true;
while (flag) {
moveForward();