Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 144810
Collapse All | Expand All

(-)src/org/eclipse/jst/jsp/core/internal/parser/JSPSourceParser.java (+7 lines)
Lines 360-365 Link Here
360
				if (currentNode.getLastRegion() != null && currentNode.getLastRegion().getType() == DOMRegionContext.UNDEFINED) {
360
				if (currentNode.getLastRegion() != null && currentNode.getLastRegion().getType() == DOMRegionContext.UNDEFINED) {
361
					currentNode.getLastRegion().adjustLength(region.getLength());
361
					currentNode.getLastRegion().adjustLength(region.getLength());
362
					currentNode.adjustLength(region.getLength());
362
					currentNode.adjustLength(region.getLength());
363
					
364
					//if adding this region to a previous container then need to add this
365
					//region to the container and update its start location
366
					if(currentNode.getLastRegion() instanceof ITextRegionContainer) {
367
						region.adjustStart(-currentNode.getLastRegion().getStart()- currentNode.getStart());
368
						((ITextRegionContainer)currentNode.getLastRegion()).getRegions().add(region);
369
					}
363
				}
370
				}
364
				// previous wasn't undefined
371
				// previous wasn't undefined
365
				else {
372
				else {

Return to bug 144810