]> matita.cs.unibo.it Git - helm.git/commitdiff
Uri ending in '' were not accepted. Fixed.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 2 Sep 2008 13:59:47 +0000 (13:59 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 2 Sep 2008 13:59:47 +0000 (13:59 +0000)
helm/software/components/grafite_parser/grafiteParser.ml

index b9f6d388fa2faa50c318383f373b322b0bde459b..0dd5c0885e7a1ce6636cd6d765c4fb530b1d5e21 100644 (file)
@@ -537,7 +537,8 @@ EXTEND
       let alpha = "[a-zA-Z]" in
       let num = "[0-9]+" in
       let ident_cont = "\\("^alpha^"\\|"^num^"\\|_\\|\\\\\\)" in
-      let ident = "\\("^alpha^ident_cont^"*\\|_"^ident_cont^"+\\)" in
+      let decoration = "\\'" in
+      let ident = "\\("^alpha^ident_cont^"*"^decoration^"*\\|_"^ident_cont^"+"^decoration^"*\\)" in
       let rex = Str.regexp ("^"^ident^"$") in
       if Str.string_match rex id 0 then
         if (try ignore (UriManager.uri_of_string uri); true