-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Repros with the following code.
class URL;
class URl;
class Test {
// Bug 1: This URL is highlighted differently
URL DoSomething() {
// Bug 2: Smart indentation from newline is broken (2 spaces too many)
URL url;
return url;
}
// Bug 3: The std:: is highlighted yet more differently (and default
// indentation is broken
// Bug 4: Smart indentation _after_ the DoSomething function is broken even
// worse. (6 spaces too many)
std::string doFoo(const std::string& a) {
return absl::StrCat("something long", a);
}
// Correct highlighting and indentation after one function call.
std::string doFoo2(const std::string& a) {
return absl::StrCat("something long", a);
}
// Correct highlighting of types that are not fully UPPERCASE.
URl DoSomething2() {
URL url;
return url;
}
// Also correct.
std::string doFoo3(const std::string& a) {
return absl::StrCat("something long", a);
}
std::string doFoo4(const std::string& a) {
return absl::StrCat("something long", a);
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels