textmate / swift.tmbundle

TextMate support for Swift
72 stars 30 forks source link

Highlighting issue after associated type with no default #24

Closed natecook1000 closed 7 years ago

natecook1000 commented 7 years ago

The following code sample shows a highlighting bug:

protocol Collection : Sequence {
    // highlighting stops from the end of the next line until the following '=':
    associatedtype IndexDistance : SignedInteger
    associatedtype Iterator : IteratorProtocol = IndexingIterator<Self>
}

The second associatedtype line should be highlighted like the first:

protocol Collection : Sequence {
    associatedtype IndexDistance : SignedInteger = Int
    associatedtype Iterator : IteratorProtocol = IndexingIterator<Self>
}
jtbandes commented 7 years ago

@natecook1000 I think this is already handled in #23, could you verify?

@infininight If you get a chance, would appreciate review on it :)

natecook1000 commented 7 years ago

Yep, that's definitely the same behavior! Haven't had a chance to verify the fix.

jtbandes commented 7 years ago

I just merged #23, so this should be taken care of. Keep an eye out for whenever GitHub does another grammar update.