aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherbelin2006-05-11 11:29:30 +0000
committerherbelin2006-05-11 11:29:30 +0000
commit244096effd05cfbd656e0b63b22c480d8c7d08ed (patch)
tree25bf011ffb0fc3b91bbdf78f31ac2f62e50962a4
parentfc5dcb9e0dac748bfb40a1523d0811490158cada (diff)
Oubli des symboles du Latin-1
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@8805 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--parsing/lexer.ml46
1 files changed, 5 insertions, 1 deletions
diff --git a/parsing/lexer.ml4 b/parsing/lexer.ml4
index 93ab229a9d..cd013e5599 100644
--- a/parsing/lexer.ml4
+++ b/parsing/lexer.ml4
@@ -118,6 +118,10 @@ let lookup_utf8_tail c cs =
match unicode land 0x1F000 with
| 0x0 ->
begin match unicode with
+ (* utf-8 Latin-1 non breaking space U00A0 *)
+ | 0x00A0 -> Utf8Letter n
+ (* utf-8 Latin-1 symbols U00A1-00BF *)
+ | x when 0x00A0 <= x & x <= 0x00BF -> Utf8Symbol
(* utf-8 Latin-1 letters U00C0-00D6 *)
| x when 0x00C0 <= x & x <= 0x00D6 -> Utf8Letter n
(* utf-8 Latin-1 symbol U00D7 *)
@@ -168,7 +172,7 @@ let lookup_utf8_tail c cs =
| x when 0x2010 <= x & x <= 0x2011 -> Utf8Letter n
(* Dashes and other symbols *)
| x when 0x2012 <= x & x <= 0x2027 -> Utf8Symbol
- (* Per mille and per ten thousant signs *)
+ (* Per mille and per ten thousand signs *)
| x when 0x2030 <= x & x <= 0x2031 -> Utf8Symbol
(* Prime letters *)
| x when 0x2032 <= x & x <= 0x2034 or x = 0x2057 -> Utf8IdentPart n