Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String Format Specifier issues #283

Open
nurbles opened this issue Oct 10, 2019 · 0 comments
Open

String Format Specifier issues #283

nurbles opened this issue Oct 10, 2019 · 0 comments

Comments

@nurbles
Copy link

nurbles commented Oct 10, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant