jeff-hykin / better-cpp-syntax

💾 The source of VS Code's C++ syntax highlighting
GNU General Public License v3.0
155 stars 30 forks source link

printf() format string highlight #542

Open dxdxdt opened 3 years ago

dxdxdt commented 3 years ago

Checklist

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.