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:
parent
c310d0064a
commit
89d14cf43a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user