let regexp paren = [ '(' '[' '{' ')' ']' '}' ]
let regexp implicit = '?'
let regexp symbol_char =
- [^ 'a' - 'z' 'A' - 'Z' '0' - '9' ' ' '\t' '\n' '\\' '(' '[' '{' ')' ']' '}' ]
-
+ [^ 'a' - 'z' 'A' - 'Z' '0' - '9'
+ ' ' '\t' '\n'
+ '\\' '(' '[' '{' ')' ']' '}' '?'
+ ]
let regexp blanks = blank+
let regexp num = digit+
let regexp tex_token = '\\' alpha+
let regexp meta = implicit num
let regexp qstring = '"' [^ '"']* '"'
let regexp uri =
- (* schema *) (* path *) (* ext *) (* xpointer *)
- ("cic:/" | "theory:/") ident ('/' ident)* ('.' ident)+ ('#' num ('/' num)*)?
+ ("cic:/" | "theory:/") (* schema *)
+ ident ('/' ident)* (* path *)
+ ('.' ident)+ (* ext *)
+ ("#xpointer(" num ('/' num)+ ")")? (* xpointer *)
(* let regexp catchall = .* *)
let keywords = Hashtbl.create 17