// The provider used when typing a comment.
CompletionProvider commentCP = createCommentCompletionProvider();
// Create the "parent" completion provider.
CCompletionProvider provider = new CCompletionProvider(codeCP);
provider.setStringCompletionProvider(stringCP);
provider.setCommentCompletionProvider(commentCP);
return provider;
}