Add support for multiline XPath queries.
authorKim Nguyễn <kn@lri.fr>
Fri, 4 May 2012 12:57:57 +0000 (14:57 +0200)
committerKim Nguyễn <kn@lri.fr>
Fri, 4 May 2012 12:57:57 +0000 (14:57 +0200)
src/ulexer.ml

index a7d75ed..157e7d2 100644 (file)
@@ -185,7 +185,7 @@ let parse_char lexbuf base i =
   !r
 
 let rec token = lexer
- | [' ' '\t'] -> token lexbuf
+ | [' ' '\t' '\n'] -> token lexbuf
  | "and" | "not" | "or"  | "text()" | "node()" 
  | "self" | "descendant" | "child" | "descendant-or-self" 
  | "attribute" | "following-sibling" | "preceding-sibling"