Skip to content

[Bug] highlight c++ error

Hi, it seems some parse error with the following code:

#include <bits/stdc++.h>
using namespace std;

int main() {
  cout << (uint8_t*)"1";
  return 0;
}

The output of highlight -O ansi --force test.cpp is like: image

Seems not recognize the " after ) as the start token of a string.

Hope to fix, thx!

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information