Move away from deprecated curry syntax
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
public func until(tags:[String])(parser:TokenParser, token:Token) -> Bool {
|
||||
public func until(tags: [String]) -> ((TokenParser, Token) -> Bool) {
|
||||
return { parser, token in
|
||||
if let name = token.components().first {
|
||||
for tag in tags {
|
||||
if name == tag {
|
||||
@@ -9,6 +10,7 @@ public func until(tags:[String])(parser:TokenParser, token:Token) -> Bool {
|
||||
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
public typealias Filter = Any? throws -> Any?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user