Bug 43437 Scanner does not like string literals
20030922 1. Create a scanner and initalize it with the string "\"hello\"" 2. Read two tokens: You get a TokenNameStringLiteral and a InvalidInputException: Unterminated_String I'd expect to get - TokenNameStringLiteral and a - TokenNameEOF
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/TaskMarkerProposal.java
}
		int end;
		if (buffer.getChar(commentStart) == '/' && buffer.getChar(commentStart + 1) == '/') {
			end= commentEnd;
		} else {
			int endLine= buffer.getLineOfOffset(commentEnd - 1);
			if (endLine + 1 == buffer.getNumberOfLines()) {
				TextRegion endRegion= buffer.getLineInformation(endLine);
				end= endRegion.getOffset() + endRegion.getLength();
			} else {
				TextRegion endRegion= buffer.getLineInformation(endLine + 1);
				end= endRegion.getOffset();
			}					
		}
		int posEnd= fLocation.getOffset() + fLocation.getLength();
		if (hasContent(buffer.getContent(posEnd, end - posEnd))) {
			return null;
		}
		return new Position(start, end - start);
	}
	
	private IScanner getSurroundingComment(TextBuffer buffer) {
		try {
			IScanner scanner= ToolFactory.createScanner(true, false, false, false);
			scanner.setSource(buffer.getContent().toCharArray());
			scanner.resetTo(0, buffer.getLength());
				
			int start= fLocation.getOffset();
			int end= start + fLocation.getLength();