Browse Source

fixed small pb with multiple errors line number.

Nicolas Cannasse 19 years ago
parent
commit
0418544027
1 changed files with 1 additions and 0 deletions
  1. 1 0
      main.ml

+ 1 - 0
main.ml

@@ -66,6 +66,7 @@ let type_error e p =
 	has_error := true
 
 let parse_error e p =
+	Lexer.save_lines();
 	warn (Parser.error_msg e) p;
 	has_error := true