Merge branch 'handle-stdout'
[SXSI/xpathcomp.git] / src / ulexer.ml
index 05ab4ae..157e7d2 100644 (file)
@@ -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"