vscode-arduino-tools
vscode-arduino-tools copied to clipboard
Incorrect syntax highlighting after some preprocessor directives
Describe the problem
After #elif and #error, the text are wrong coloured
see de screenshot

To reproduce
Copy this in editor
//---Config pour l'ESP-----------------------
#ifdef ARDUINO_ESP8266_GENERIC
#define ESPMOD //pour module ESP12
#define TelNetDEBUG //mode TelNet debug (via port 23)
//#define CommErTRACE //TRACE les compteurs d'erreures de comm
//---Config pour le ProMini------------------
#elif ARDUINO_AVR_PRO
#define PROMOD //pour module ProMini
#else
#error //Si pas une de ces deux carte => Stop la compilation
#endif
Expected behavior
#elif definition should be blue
#error //comment should be green
Arduino IDE version
2.0.1
Operating system
Windows
Operating system version
10
Additional context
Additional reports
- https://forum.arduino.cc/t/ide-frontend-problems/1254933
Issue checklist
- [X] I searched for previous reports in the issue tracker
- [X] I verified the problem still occurs when using the latest nightly build
- [X] My report contains all necessary details