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 token= scanner.getNextToken();
			while (token != ITerminalSymbols.TokenNameEOF) {
				if (TokenScanner.isComment(token)) {
					int currStart= scanner.getCurrentTokenStartPosition();
					int currEnd= scanner.getCurrentTokenEndPosition() + 1;
					if (currStart <= start && end <= currEnd) {
						return scanner;
					}
				}
				token= scanner.getNextToken();
			}
				
		} catch (InvalidInputException e) {
			
		}
		return null;
	}	
	
	private boolean hasContent(String string) {
		for (int i= 0; i < string.length(); i++) {
			char ch= string.charAt(i);
			if (Character.isLetter(ch)) {
				return true;
			}
		}
		return false;
	}	
	
}