diff options
author | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2006-11-20 11:19:31 +0000 |
---|---|---|
committer | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2006-11-20 11:19:31 +0000 |
commit | 352f41ba49962c326f6c3e68b4bac0de9d62f987 (patch) | |
tree | e7e87aadb9480a23fa93194f5eb265e643cd90b7 | |
parent | 79f118c7193fcf16b936fa708f72df1c16b29719 (diff) |
Correction boucle du parseur en cas de caractÃère non unicode
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9394 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r-- | parsing/lexer.ml4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/parsing/lexer.ml4 b/parsing/lexer.ml4 index 3b60cf2e0..9f7e422d7 100644 --- a/parsing/lexer.ml4 +++ b/parsing/lexer.ml4 @@ -80,6 +80,7 @@ let error_unsupported_unicode_character n cs = let error_utf8 cs = let bp = Stream.count cs in + Stream.junk cs; (* consume the char to avoid read it and fail again *) err (bp, bp+1) Illegal_character let njunk n = Util.repeat n Stream.junk |