new InvalidInputException(NLSMessages.getString("nlsscanner.invalid_tag") + s.substring(pos, end + 1));
return;
	private static void parseTags(NLSLine line, Scanner scanner) throws InvalidInputException {		String s= new String(scanner.getCurrentTokenSource());		int pos= s.indexOf(NLSElement.TAG_PREFIX);		while (pos != -1) {			int start= pos + NLSElement.TAG_PREFIX_LENGTH; 			int end= s.indexOf(NLSElement.TAG_POSTFIX, start);			String index= s.substring(start, end);			int i= 0;			try {				i= Integer.parseInt(index) - 1; 	// Tags are one based not zero based.			} catch (NumberFormatException e) {				new InvalidInputException(NLSMessages.getString("nlsscanner.invalid_tag") + s.substring(pos, end + 1)); //$NON-NLS-1$			}			if (line.exists(i)) {				NLSElement element= line.get(i);				element.setTagPosition(scanner.startPosition + pos, end - pos + 1);			} else {				new InvalidInputException(NLSMessages.getString("nlsscanner.no_string_for_tag") + s.substring(pos, end + 1));				 //$NON-NLS-1$			}			pos= s.indexOf(NLSElement.TAG_PREFIX, start);		}	}	