From 49a4d6d69a54bcdfb05c893ff2208e3e045efa26 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Mon, 21 Nov 2005 08:36:02 +0000 Subject: [PATCH] fixed URI regexp so that URIs containing '-' are allowed --- helm/ocaml/cic_notation/cicNotationLexer.ml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/helm/ocaml/cic_notation/cicNotationLexer.ml b/helm/ocaml/cic_notation/cicNotationLexer.ml index 3d9d6be25..33fb8fd78 100644 --- a/helm/ocaml/cic_notation/cicNotationLexer.ml +++ b/helm/ocaml/cic_notation/cicNotationLexer.ml @@ -123,9 +123,12 @@ let _ = ("<>", <:unicode>); (":=", <:unicode>); ] +let regexp uri_step = [ 'a' - 'z' 'A' - 'Z' '0' - '9' '_' '-' ]+ + let regexp uri = ("cic:/" | "theory:/") (* schema *) - ident ('/' ident)* (* path *) +(* ident ('/' ident)* |+ path +| *) + uri_step ('/' uri_step)* (* path *) ('.' ident)+ (* ext *) ("#xpointer(" number ('/' number)+ ")")? (* xpointer *) -- 2.39.2