arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.3k stars 390 forks source link

Incorrect syntax coloring for Boolean literals #291

Closed kittaakos closed 3 years ago

kittaakos commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

true and false have incorrect syntax coloring:

Java IDE: Screen Shot 2021-03-31 at 13 24 01

New IDE: Screen Shot 2021-03-31 at 13 23 53

Macka323 commented 3 years ago

I don't know if this isn't the problem or I have different version or something else but the syntax coloring is correct. image

kittaakos commented 3 years ago

the syntax coloring is correct.

No, it isn't. I am comparing the Java IDE and the new IDE bahevior.

Screen Shot 2021-04-01 at 12 49 40 Screen Shot 2021-04-01 at 12 49 45

Macka323 commented 3 years ago

Maybe I am wrong, I don't know, I am beginner and trying to contribute image

ubidefeo commented 3 years ago

@kittaakos I have tried and it only lacks colouring on the Light Arduino theme the dark theme shows it correctly. @Macka323 can you try the Light Arduino theme?

Light Arduino

Screenshot 2021-04-01 at 22 46 55

Light Theia

Screenshot 2021-04-01 at 22 49 21

Dark Theia

Screenshot 2021-04-01 at 22 48 59
Macka323 commented 3 years ago

@ubidefeo The syntax coloring in the Light Arduino is wrong.

ubidefeo commented 3 years ago

thank you for confirming this. definitely a bug :)