A comment behind the compiler switch #ifdef disturbs the keyword detection

In the following code there is one #ifdef statement with and one without a comment.
The comment disturbs the keyword detection/coloring, but not the correct function.

I added a picture to see the colors of the result (instead of code)
grafik

Hi @purehunter. The Arduino IDE developers are tracking this bug here:

If you have a GitHub account, you can subscribe to that thread to get notifications of any new developments related to this subject:

screenshot of Subscribe button


:exclamation: Please only comment on the GitHub issue thread if you have new technical information that will assist with the resolution (which is unlikely since it has already been resolved). General discussion and support requests are always welcome here on the Arduino Forum.


It is actually caused by a bug in a 3rd party project which provides the highlighting for Arduino IDE:

The bug has already been fixed there, but unfortunately the resources have not been available to update Arduino IDE's dependency to the version with the fix.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.