From 4916f5e639141b7051bdf29fb77f1792e5abe745 Mon Sep 17 00:00:00 2001 From: axelcl Date: Tue, 7 Dec 2004 19:56:06 +0000 Subject: [PATCH 1/1] fixed bug: "not indexed" variables in comma separated lists --- .../phpeclipse/builder/IdentifierIndexManager.java | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/builder/IdentifierIndexManager.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/builder/IdentifierIndexManager.java index fda5d2e..e3bfcda 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/builder/IdentifierIndexManager.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/builder/IdentifierIndexManager.java @@ -174,12 +174,15 @@ public class IdentifierIndexManager { || fToken == TokenNameprotected || fToken == TokenNameprivate) { getNextToken(); } - if (fToken == TokenNameVariable) { + while (fToken == TokenNameVariable) { ident = fScanner.getCurrentIdentifierSource(); classVariable = new char[ident.length - 1]; System.arraycopy(ident, 1, classVariable, 0, ident.length - 1); addClassVariableInformation('v', classVariable, buf, phpdocOffset, phpdocLength); getNextToken(); + if (fToken == TokenNameCOMMA) { + getNextToken(); + } } } else if (!hasModifiers && fToken == TokenNameIdentifier) { ident = fScanner.getCurrentIdentifierSource(); -- 1.7.1