aboutsummaryrefslogtreecommitdiff
path: root/parsing
diff options
context:
space:
mode:
authorherbelin2002-11-28 19:48:20 +0000
committerherbelin2002-11-28 19:48:20 +0000
commit6aedc1b6c4047a206e2e02aea77cab23afa534a6 (patch)
tree6f19ce87151f62f414ce1cdb9c0a81502480179c /parsing
parent13ecb862956076e70e6d1514abf36e5ad98ba1e9 (diff)
Essai de suppression du caractere d'echappement des string
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3327 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'parsing')
-rw-r--r--parsing/lexer.ml45
1 files changed, 4 insertions, 1 deletions
diff --git a/parsing/lexer.ml4 b/parsing/lexer.ml4
index a3ea85e022..8d23a9ce85 100644
--- a/parsing/lexer.ml4
+++ b/parsing/lexer.ml4
@@ -190,7 +190,10 @@ let escape len c = store len c
let rec string bp len = parser
| [< ''"' >] -> len
- | [< ''\\'; 'c; s >] -> string bp (escape len c) s
+(* Uncomment to allow '"' in strings
+ | [< ''\\'; c = (parser [< ' ('"' | '\\' as c) >] -> c | [< >] -> '\\'); s >]
+ -> string bp (escape len c) s
+*)
| [< _ = Stream.empty >] ep -> err (bp, ep) Unterminated_string
| [< 'c; s >] -> string bp (store len c) s