mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Omit needless words] Don't split "PlugIn".
Fixes rdar://problem/26334014.
This commit is contained in:
@@ -886,6 +886,10 @@ camel_case::toLowercaseInitialisms(StringRef string,
|
||||
/// splitting.
|
||||
static bool wordConflictsBeforePreposition(StringRef word,
|
||||
StringRef preposition) {
|
||||
if (camel_case::sameWordIgnoreFirstCase(preposition, "in") &&
|
||||
camel_case::sameWordIgnoreFirstCase(word, "plug"))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user