harmonisation des backslash

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4521 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Damien Doligez 2002-03-13 14:07:33 +00:00
parent bae1b84692
commit e99d7ad000
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ and string = parse
{ line_start_pos := Lexing.lexeme_end lexbuf;
incr line_num;
string lexbuf }
| '\\' ['\\' '"' 'n' 't' 'b' 'r']
| '\\' ['\\' '"' '\'' 'n' 't' 'b' 'r']
{ store_string_char(char_for_backslash(Lexing.lexeme_char lexbuf 1));
string lexbuf }
| '\\' ['0'-'9'] ['0'-'9'] ['0'-'9']