XMLSourceParser parser = new XMLSourceParser();
// use JSP_CONTENT for region type
parser.addBlockMarker(new BlockMarker("jsp:scriptlet", null, DOMJSPRegionContexts.JSP_CONTENT, false, false)); //$NON-NLS-1$
parser.addBlockMarker(new BlockMarker("jsp:expression", null, DOMJSPRegionContexts.JSP_CONTENT, false, false)); //$NON-NLS-1$
parser.addBlockMarker(new BlockMarker("jsp:declaration", null, DOMJSPRegionContexts.JSP_CONTENT, false, false)); //$NON-NLS-1$
parser.reset(blockText);
return parser.getDocumentRegions();
}
/*
* @see ContentAssistAdapter#computeContextInformation(ITextViewer, int,