modify CCParse.U.list to skip newlines

This commit is contained in:
Simon Cruanes 2015-08-24 11:28:51 +02:00
parent 641ab6f06e
commit 8e368a3f0b

View file

@ -199,9 +199,9 @@ module U = struct
let sep_ = sep
let list ?(start="[") ?(stop="]") ?(sep=";") p =
string start *> skip_space *>
sep_ ~by:(skip_space *> string sep *> skip_space) p <*
skip_space <* string stop
string start *> skip_white *>
sep_ ~by:(skip_white *> string sep *> skip_white) p <*
skip_white <* string stop
let int =
chars1_if (is_num ||| (=) '-')