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