From: dizmo Date: Thu, 22 Mar 2007 03:16:38 +0000 (+0000) Subject: closes [ 1033591 ] Tasks not reporting corrent line number in task view X-Git-Url: http://git.phpeclipse.com closes [ 1033591 ] Tasks not reporting corrent line number in task view --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Scanner.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Scanner.java index f230cf3..5e44d43 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Scanner.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Scanner.java @@ -1438,8 +1438,6 @@ public class Scanner implements IScanner, ITerminalSymbols { while ((currentCharacter == ' ') || Character.isWhitespace(currentCharacter)) { - startPosition = currentPosition; - currentCharacter = source[currentPosition++]; if ((currentCharacter == '\r') || (currentCharacter == '\n')) { checkNonExternalizeString(); @@ -1449,6 +1447,8 @@ public class Scanner implements IScanner, ITerminalSymbols { currentLine = null; } } + startPosition = currentPosition; + currentCharacter = source[currentPosition++]; } if (tokenizeWhiteSpace && (whiteStart != currentPosition - 1)) {