summaryrefslogtreecommitdiff
path: root/library/nameops.ml
diff options
context:
space:
mode:
authorGravatar Samuel Mimram <samuel.mimram@ens-lyon.org>2005-01-31 14:34:14 +0000
committerGravatar Samuel Mimram <samuel.mimram@ens-lyon.org>2005-01-31 14:34:14 +0000
commit6497f27021fec4e01f2182014f2bb1989b4707f9 (patch)
tree473be7e63895a42966970ab6a70998113bc1bd59 /library/nameops.ml
parent6b649aba925b6f7462da07599fe67ebb12a3460e (diff)
Imported Upstream version 8.0pl2upstream/8.0pl2
Diffstat (limited to 'library/nameops.ml')
-rw-r--r--library/nameops.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/nameops.ml b/library/nameops.ml
index ea40aae5..35b707a7 100644
--- a/library/nameops.ml
+++ b/library/nameops.ml
@@ -6,7 +6,7 @@
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
-(* $Id: nameops.ml,v 1.21.2.1 2004/07/16 19:30:36 herbelin Exp $ *)
+(* $Id: nameops.ml,v 1.21.2.2 2004/10/12 10:12:31 herbelin Exp $ *)
open Pp
open Util
@@ -29,8 +29,8 @@ let cut_ident skip_quote s =
(* [n'] is the position of the first non nullary digit *)
let rec numpart n n' =
if n = 0 then
- error
- ("The string " ^ s ^ " is not an identifier: it contains only digits or _")
+ (* ident made of _ and digits only [and ' if skip_quote]: don't cut it *)
+ slen
else
let c = Char.code (String.get s (n-1)) in
if c = code_of_0 && n <> slen then