1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00

Remove extra whitespace parsers

This commit is contained in:
joshvera 2015-10-19 15:15:25 -04:00
parent c310d0064a
commit 89d14cf43a

View File

@ -76,7 +76,7 @@ typealias ValuesParser = Parser<String, [CofreeJSON]>.Function;
func elements(json: JSONParser) -> ValuesParser {
let value: Parser<String, CofreeJSON>.Function = whitespace *> json <* whitespace
let separatedValues: ValuesParser = (%"," *> whitespace *> value <* whitespace)*
let separatedValues: ValuesParser = (%"," *> value)*
let oneOrMore: ValuesParser = curry { [$0] + $1 } <^>
value