From: Kim Nguyễn Date: Fri, 4 May 2012 12:57:57 +0000 (+0200) Subject: Add support for multiline XPath queries. X-Git-Url: http://git.nguyen.vg/gitweb/?p=SXSI%2Fxpathcomp.git;a=commitdiff_plain;h=50da4f8d437372ae53be11a68beb424b35b28966 Add support for multiline XPath queries. --- diff --git a/src/ulexer.ml b/src/ulexer.ml index a7d75ed..157e7d2 100644 --- a/src/ulexer.ml +++ b/src/ulexer.ml @@ -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"