Sublime Forum

The syntax highlighting for C preprocessor is wrong!

#1

Hi, I find ST3 has wrong syntax highlighting for C preprocessor when I use continue line character ‘’, but in Xcode, it is right.

You can try the following snippet in C or any other languages which have C preprocessor (sorry, I couldn’t upload pictures :cry: ):

#if defined A && \
    defined B

In addition, I am writing a Fortran language package, so how could I reuse the syntax definitions for C preprocessor in other languages?

Thank you!

0 Likes

#2

I released an alternate C language package called CFeather. It’s not bulletproof either, but does handle your example OK.

0 Likes

#3

Thanks for your works! I hope the native C language package could be improved, too.

0 Likes