better-cpp-syntax icon indicating copy to clipboard operation
better-cpp-syntax copied to clipboard

printf() format string highlight

Open dxdxdt opened this issue 4 years ago • 0 comments

Checklist

  • [ ] This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"
  • [ ] This bug exists for C
  • [ ] This bug exists for C++
  • [ ] This bug exists for Objective-C
  • [ ] This bug exists for Objective-C++

The code with a problem is:

#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>

int main (void) {
	uint8_t n = 0x01;

	return printf("%02"PRIx8"\n", n) == 1;
}

It looks like:

Screenshot from 2021-04-12 11-12-01

It should look like:

The "%" not red.

dxdxdt avatar Apr 12 '21 01:04 dxdxdt