From: axelcl Date: Sun, 2 Jan 2005 11:57:26 +0000 (+0000) Subject: Fixed bug for line comments starting with '#=' characters and detecting wrong '/... X-Git-Url: http://git.phpeclipse.com Fixed bug for line comments starting with '#=' characters and detecting wrong '/=' token. --- 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 7d96e62..655dcef 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 @@ -1528,7 +1528,7 @@ public class Scanner implements IScanner, ITerminalSymbols { case '#': case '/': { char startChar = currentCharacter; - if (getNextChar('=')) { + if (getNextChar('=') && startChar=='/') { return TokenNameDIVIDE_EQUAL; } int test;