mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Omit needless words] Treat "separated by" as a single preposition.
Fixes rdar://problem/25883450.
This commit is contained in:
@@ -953,6 +953,11 @@ static bool priorWordExtendsPreposition(StringRef preceding,
|
||||
camel_case::sameWordIgnoreFirstCase(preposition, "by"))
|
||||
return true;
|
||||
|
||||
// separated by
|
||||
if (camel_case::sameWordIgnoreFirstCase(preceding, "separated") &&
|
||||
camel_case::sameWordIgnoreFirstCase(preposition, "by"))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user