You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really like the ability to have a special color for string format specifiers (thank you!) but issues with the matching actually caused me to make some formatting errors before I realized that it only matches very simple, basic format specifiers.
For example, try this string with Viasfora: "%d xx %-2.2s xx %hd xx %hhd xx %I64u" and you will see that not all of the characters in all of the format specifiers are colored correctly.
To really be helpful rather than a little misleading, I think the matcher should support the formats as Microsoft documented them for its compiler: Format Specification Syntax
Finally, I also think that "%%" should [optionally?] be matched, but I am unsure whether to consider it a format specifier or an escape. It is a special escape for the character that begins a format specifier. Either would probably work.
The text was updated successfully, but these errors were encountered:
I really like the ability to have a special color for string format specifiers (thank you!) but issues with the matching actually caused me to make some formatting errors before I realized that it only matches very simple, basic format specifiers.
For example, try this string with Viasfora:
"%d xx %-2.2s xx %hd xx %hhd xx %I64u"
and you will see that not all of the characters in all of the format specifiers are colored correctly.To really be helpful rather than a little misleading, I think the matcher should support the formats as Microsoft documented them for its compiler: Format Specification Syntax
Finally, I also think that "%%" should [optionally?] be matched, but I am unsure whether to consider it a format specifier or an escape. It is a special escape for the character that begins a format specifier. Either would probably work.
The text was updated successfully, but these errors were encountered: