Commits

Stephen McKamey committed 98e95bb

- minor tweak

  • Participants
  • Parent commits d9717ef

Comments (0)

Files changed (1)

src/org/duelengine/duel/parsing/DuelLexer.java

 	 * @throws IOException
 	 */
 	private void setMark(int bufferSize) throws IOException {
-		this.reader.mark(bufferSize);
-
 		// store current statistics
 		this.mark_line = this.line;
 		this.mark_column = this.column;
 		this.mark_index = this.index;
 		this.mark_ch = this.ch;
+
+		this.reader.mark(bufferSize);
 	}
 
 	/**
 	 * @throws IOException
 	 */
 	private void resetMark() throws IOException {
-		this.reader.reset();
-
 		// restore current statistics
 		this.line = this.mark_line;
 		this.column = this.mark_column;
 		this.index = this.mark_index;
 		this.ch = this.mark_ch;
+
+		this.reader.reset();
 	}
 
 	/**