From: Kim Nguyễn Date: Mon, 2 Apr 2012 13:02:41 +0000 (+0200) Subject: Add text() and node() tokens in the lexer to allow node test and X-Git-Url: http://git.nguyen.vg/gitweb/?p=SXSI%2Fxpathcomp.git;a=commitdiff_plain;h=a127ef55715b51a4e8b943104af2ebdc60733f0c Add text() and node() tokens in the lexer to allow node test and text node test in XPath expression. --- diff --git a/src/ulexer.ml b/src/ulexer.ml index 05ab4ae..a7d75ed 100644 --- a/src/ulexer.ml +++ b/src/ulexer.ml @@ -186,7 +186,7 @@ let parse_char lexbuf base i = let rec token = lexer | [' ' '\t'] -> token lexbuf - | "and" | "not" | "or" (* | "text" | "node" *) + | "and" | "not" | "or" | "text()" | "node()" | "self" | "descendant" | "child" | "descendant-or-self" | "attribute" | "following-sibling" | "preceding-sibling" | "parent" | "ancestor" | "ancestor-or-self" | "preceding" | "following"