This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 255050
Collapse All | Expand All

(-)a/groovy.editor/src/org/netbeans/modules/groovy/editor/api/ASTUtils.java (-2 / +4 lines)
Lines 473-485 Link Here
473
                TokenSequence<GroovyTokenId> ts = LexUtilities.getPositionedSequence(doc, startOffset);
473
                TokenSequence<GroovyTokenId> ts = LexUtilities.getPositionedSequence(doc, startOffset);
474
                if (ts != null) {
474
                if (ts != null) {
475
                    Token<GroovyTokenId> token = ts.token();
475
                    Token<GroovyTokenId> token = ts.token();
476
                    if (token != null && token.id() == GroovyTokenId.IDENTIFIER && TokenUtilities.textEquals(identifier, token.text())) {
476
                    if (token != null && token.id() == GroovyTokenId.IDENTIFIER 
477
                            && ( TokenUtilities.textEquals(identifier, token.text())
478
                                || TokenUtilities.endsWith(identifier, "." + token.text()) ) ) {
477
                        result[0] = computeRange(ts, token);
479
                        result[0] = computeRange(ts, token);
478
                        return;
480
                        return;
479
                    }
481
                    }
480
                    while (ts.moveNext()) {
482
                    while (ts.moveNext()) {
481
                        token = ts.token();
483
                        token = ts.token();
482
                        if (token != null && token.id() == GroovyTokenId.IDENTIFIER && TokenUtilities.textEquals(identifier, token.text())) {
484
                        if (token != null && token.id() == GroovyTokenId.IDENTIFIER && TokenUtilities.endsWith(identifier, token.text())) {
483
                            result[0] = computeRange(ts, token);
485
                            result[0] = computeRange(ts, token);
484
                            return;
486
                            return;
485
                        }
487
                        }

Return to bug 255050