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 {
|
if let name = token.components().first {
|
||||||
for tag in tags {
|
for tag in tags {
|
||||||
if name == tag {
|
if name == tag {
|
||||||
@@ -8,6 +9,7 @@ public func until(tags:[String])(parser:TokenParser, token:Token) -> Bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public typealias Filter = Any? throws -> Any?
|
public typealias Filter = Any? throws -> Any?
|
||||||
|
|||||||
Reference in New Issue
Block a user