1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 03:45:35 +02:00

Patch for Bryan - 180885 - handles content assist of names after parens which is ambiguious in C.

This commit is contained in:
Doug Schaefer 2007-04-04 15:58:48 +00:00
parent b106c45f80
commit d2c7393544
2 changed files with 3 additions and 3 deletions

View file

@ -850,8 +850,8 @@ public class GNUCSourceParser extends AbstractGNUSourceCodeParser {
startCastExpression=mark(); startCastExpression=mark();
castExpression = castExpression(); castExpression = castExpression();
break; break;
case IToken.tEOC: // case IToken.tEOC: // support for completion removed
break; // break; // in favour of another parse tree
default: default:
needBack = true; needBack = true;
// throw backtrack; // throw backtrack;

View file

@ -66,7 +66,7 @@ public class CompletionTests_PlainC extends AbstractContentAssistTest {
//void test() { //void test() {
// int myvar; // int myvar;
// (my/*cursor*/ // (my/*cursor*/
public void _testLocalVariableAfterOpeningParen_Bug180885() throws Exception { public void testLocalVariableAfterOpeningParen_Bug180885() throws Exception {
final String[] expected= { final String[] expected= {
"myvar" "myvar"
}; };