private void calcPos(String s) {
		linePositions = new int[s.length()];
		columnPositions = new int[s.length()];
		int line = 1;
		int column = 1;
		for (int i = 0; i < s.length(); i++) {
			linePositions[i] = line;
			columnPositions[i] = column;
			if (s.charAt(i) == '\n') {
				line++;
				column = 1;
			} else if (s.charAt(i) == '\t') {
				column += 2;
			} else {
				column++;
			}
		}
	}