X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2Fulexer.ml;h=157e7d2521e6b13edc0a2f6fc8b8eb3322451204;hb=7e27afe6fa006ad355237ccc0695c6493ea57929;hp=05ab4aec2eb0ce10b9f3a8a0c4c78f955d98092c;hpb=4c1b85252e5abd40ef544fa9acab3e2c990ad958;p=SXSI%2Fxpathcomp.git diff --git a/src/ulexer.ml b/src/ulexer.ml index 05ab4ae..157e7d2 100644 --- a/src/ulexer.ml +++ b/src/ulexer.ml @@ -185,8 +185,8 @@ let parse_char lexbuf base i = !r let rec token = lexer - | [' ' '\t'] -> token lexbuf - | "and" | "not" | "or" (* | "text" | "node" *) + | [' ' '\t' '\n'] -> token lexbuf + | "and" | "not" | "or" | "text()" | "node()" | "self" | "descendant" | "child" | "descendant-or-self" | "attribute" | "following-sibling" | "preceding-sibling" | "parent" | "ancestor" | "ancestor-or-self" | "preceding" | "following"