C pragmas syntax highlight bug

Péter Horváth 8 år siden opdateret af aahlborg 7 år siden 1

If there is a string after the pragma with a comment between the quotation marks, all of the code after the closing quotation mark are highlighted as strings. with /* ... */ between the quotation marks


#pragma MESSAGES_COMMENT " /* Text 1234*/ "
int main()
  printf("Hello World");
  return 0;


with /* ... */ between the quotation marks:

without /* ... */ between the quotation marks:

This will also mess up highlighting in the rest of the file.

#warning "This is a \

multiline string."

Kundesupport af UserEcho