mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-07 11:45:31 -05:00
modify CCParse.U.list to skip newlines
This commit is contained in:
parent
641ab6f06e
commit
8e368a3f0b
1 changed files with 3 additions and 3 deletions
|
|
@ -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 ||| (=) '-')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue