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:
baldurk
2016-04-22 17:36:55 +02:00
parent 341f06abfc
commit 33d8585bdb
2 changed files with 1 additions and 6 deletions
@@ -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>
-5
View File
@@ -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)