Sublime Forum

C syntax highlighting issue

#1

Just updated to the latest version of sublime text 3 and found that an issue I had with an old version is still there but slightly different.

The following function signature is valid C:
Glib::ustring Node::_getDragTip(GdkEventMotion */*event*/);

Sublime text shows the star-slash-star and the start-slash with a red background.
Adding a space between the first star and the first slash makes it highlight as expected with the comment in grey and no red backgrounds:
Glib::ustring Node::_getDragTip(GdkEventMotion * /*event*/);

I’d gladly add a space and be done with it, but this isn’t my code, not sure what upstream would think of such a change. :smile:

0 Likes

#2

Please could you log an issue for it at: https://github.com/sublimehq/Packages/issues

0 Likes