mirror of
https://github.com/apple/swift.git
synced 2026-11-01 23:11:50 +01: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.