]> matita.cs.unibo.it Git - helm.git/blobdiff - components/content_pres/cicNotationLexer.ml
avoid collapsing node that does not need to be, i.e.:
[helm.git] / components / content_pres / cicNotationLexer.ml
index 8848a3ce5045b4648e1d3f8b49fe5db27444e931..fb459a94e36bada765133844b82235626573770b 100644 (file)
@@ -125,7 +125,7 @@ let _ =
       ("<>", <:unicode<neq>>);  (":=", <:unicode<def>>);
     ]
 
-let regexp uri_step = [ 'a' - 'z' 'A' - 'Z' '0' - '9' '_' '-' ]+
+let regexp uri_step = [ 'a' - 'z' 'A' - 'Z' '0' - '9' '_' '-' ''' ]+
 
 let regexp uri =
   ("cic:/" | "theory:/")              (* schema *)
@@ -279,7 +279,9 @@ let rec ligatures_token k =
 and level2_ast_token =
   lexer
   | xml_blank+ -> ligatures_token level2_ast_token lexbuf
-  | meta -> return lexbuf ("META", Ulexing.utf8_lexeme lexbuf)
+  | meta ->
+     let s = Ulexing.utf8_lexeme lexbuf in
+      return lexbuf ("META", String.sub s 1 (String.length s - 1))
   | implicit -> return lexbuf ("IMPLICIT", "")
   | placeholder -> return lexbuf ("PLACEHOLDER", "")
   | ident ->