Change-Id: I54902dc41834943a3fcfcca60ebbc2944fa0a68a
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
IToken t;
while ((t = LA(1)).getType() != endType) {
t = consume();
+
+ if (t.getType() == IToken.tCOMPLETION || t.getType() == IToken.tEOC) {
+ break;
+ }
+
result.addToken(createASTToken(t));
IASTToken token;
final String[] expected = { "A", "C", "foo(void)" };
assertCompletionResults(fCursorOffset, expected, ID);
}
+
+ // int [[f(./*cursor*/)]] i;
+ public void testCompletionInsideAttribute_bug477359() throws Exception {
+ final String[] expected = {};
+ assertCompletionResults(fCursorOffset, expected, ID);
+ }
}