mirror of
https://github.com/apple/swift.git
synced 2026-10-24 20:15:56 +02:00
`class X: A, B` only highlighted `A`; the same-type where-clause comma-continuation only fires before `subject ==`, so it did not cover this. Add a sibling rule for the general case, requiring the next identifier not be followed by `:`, so a parameter name or labeled tuple element (`f(a: Int, b: String)`) is not mistaken for another type; defined before the where-clause rule so that more specific case still wins when both could match the same comma.