1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 02:06:01 +02:00

Fixing a couple of locations.

This commit is contained in:
John Camelon 2005-02-11 19:56:30 +00:00
parent ad34c22138
commit 0c4f633ecc

View file

@ -2478,7 +2478,7 @@ abstract class BaseScanner implements IScanner {
if (branchState(type == ppElse ? BRANCH_ELSE : BRANCH_ELIF)) { if (branchState(type == ppElse ? BRANCH_ELSE : BRANCH_ELIF)) {
if (type == ppElse) if (type == ppElse)
processElse(pos, bufferPos[bufferStackPos], false); processElse(pos, bufferPos[bufferStackPos] + 1, false);
else else
processElsif(pos, bufferPos[bufferStackPos], false); processElsif(pos, bufferPos[bufferStackPos], false);
skipToNewLine(); skipToNewLine();
@ -3236,11 +3236,11 @@ abstract class BaseScanner implements IScanner {
if (branchState(BRANCH_ELSE)) { if (branchState(BRANCH_ELSE)) {
skipToNewLine(); skipToNewLine();
if (checkelse && nesting == 0) { if (checkelse && nesting == 0) {
processElse(startPos, bufferPos[bufferStackPos], processElse(startPos, bufferPos[bufferStackPos] + 1,
true); true);
return; return;
} }
processElse(startPos, bufferPos[bufferStackPos], processElse(startPos, bufferPos[bufferStackPos] + 1,
false); false);
} else { } else {
//problem, ignore this one. //problem, ignore this one.
@ -3283,7 +3283,7 @@ abstract class BaseScanner implements IScanner {
break; break;
case ppEndif: case ppEndif:
if (branchState(BRANCH_END)) { if (branchState(BRANCH_END)) {
processEndif(startPos, bufferPos[bufferStackPos]); processEndif(startPos, bufferPos[bufferStackPos] + 1);
if (nesting > 0) { if (nesting > 0) {
--nesting; --nesting;
} else { } else {