mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 16:36:31 +00:00
Change default ID name from {x} to _x_.
* I think eyes are just more use to parsing legal identifier characters
(like _s) rather than {}s syntax. It feels like it's probably more
readable overall, although there's more of a risk of it blending into
the names in the original code
This commit is contained in:
@@ -299,7 +299,7 @@ static string OptionalFlagString(EnumType e)
|
||||
|
||||
static string DefaultIDName(uint32_t ID)
|
||||
{
|
||||
return StringFormat::Fmt("{%u}", ID);
|
||||
return StringFormat::Fmt("_%u_", ID);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
||||
@@ -1034,11 +1034,6 @@ namespace renderdocui.Windows
|
||||
|
||||
string pattern = "\\b" + word + "\\b";
|
||||
|
||||
// if a number is selected, highlight the matching ID
|
||||
uint dummy = 0;
|
||||
if (uint.TryParse(word, out dummy))
|
||||
pattern = "\\{" + word + "\\}";
|
||||
|
||||
var matches = Regex.Matches(scintilla1.Text, pattern);
|
||||
|
||||
foreach (Match m in matches)
|
||||
|
||||
Reference in New Issue
Block a user