ajout "\ " dans les chaines

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6667 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Damien Doligez 2004-11-06 20:13:41 +00:00
parent 90ba83c066
commit fb95331a3c
1 changed files with 1 additions and 0 deletions

View File

@ -153,6 +153,7 @@ value rec backslash s i =
| '\\' -> ('\\', i + 1)
| '"' -> ('"', i + 1)
| ''' -> (''', i + 1)
| ' ' -> (' ', i + 1)
| '0'..'9' as c -> backslash1 (valch c) s (i + 1)
| 'x' -> backslash1h s (i + 1)
| _ -> raise Not_found ]