]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/www/lambdadelta/bin/xhtbl/textLexer.mll
- xhtbl: support for relative links added
[helm.git] / helm / www / lambdadelta / bin / xhtbl / textLexer.mll
index 7efa9035d6e9084815beed2e5ecc6a584b1c97ae..aa8f42fe4f14ef757fb3603caa425209e30afa6e 100644 (file)
@@ -26,13 +26,16 @@ rule token = parse
    | "("      { out "("; TP.OP                  }
    | ")"      { out ")"; TP.CP                  }   
    | "@"      { out ")"; TP.AT                  }    
-   | "space"  { out "name"; TP.SPACE            }
+   | "space"  { out "space"; TP.SPACE           }
    | "name"   { out "name"; TP.NAME             }   
    | "table"  { out "table"; TP.TABLE           }
    | "class"  { out "class"; TP.CSS             }
+   | "uri"    { out "uri"; TP.URI               }
+   | "ext"    { out "ext"; TP.EXT               }
    | eof      { TP.EOF                          }
 and str = parse
    | QT       { ""                              }
+   | "\\\\"   { "\\" ^ str lexbuf               }
    | "\\\""   { "\"" ^ str lexbuf               }
    | _ as c   { S.make 1 c ^ str lexbuf         }
 and block = parse