Closed ivanshuba closed 4 years ago
Interesting. I believe this is a problem with the pde.tmLanguage file.
Sadly, I didn't write that file. I borrowed it from the Processing Sublime plugin ( https://github.com/b-g/processing-sublime ) which hasn't been updated in a while.
I honestly don't have the time to dig into the pde.tmLanguage file and figure out what is going wrong to cause this. But if somebody does and makes a PR, I'd love to fix this.
The 10 = 10
is wrong ("The left-hand side of an assignment must be a variable"). The highlighting problem dissapears if you fix it: 10 == 10
Strings inside
println()
method highlighted not as expected in some casesThe issue appears for both
println()
andSystem.out.println()
methods.To Reproduce the issue Create a simple *.pde file with the following content:
then, to see even more different coloring behavior, change the content to the following
Expected behavior Words are highlighted with varied colors which are different from the plain color used for highlighting the strings in other places. In my case, some words are purple and red instead of plain green.
Possible reason It seems that the behavior depends on the number of curly braces placed above the mentioned text.
Screenshots
Desktop: