What is this doing in "Syntax questions" section? I had some trouble finding it back, searching everywhere except here!
Oh well.
I played with the theme.txt file. I found out some comments were inaccurate, particularly for the syntax colors. Part of the trouble might come from the fact the keywords.txt file is partly autogenerated and some words have two styles, perhaps because they can be Java keyword and function name (eg. float/int) or P5 variable name and function (eg. frameRate).
Here are my corrected comments, after experimentation in 1.0.5. Don't pay attention to values, these are my personal settings.
Code:# unclosed string
editor.invalid.style = #FF7777,bold
# TEXT - KEYWORDS
# e.g abstract, final, private, void, class, color; null, true, this...
# short and double
editor.keyword1.style = #0055AA,plain
# e.g. beginShape, point, line...
# also byte, char, int, float, boolean (not short nor double!)
editor.keyword2.style = #A00070,plain
# setup, draw, pushStyle, popStyle
editor.keyword3.style =#FF8855,bold
# There are some inconsistencies above because part of keywords.txt is autogenerated
# and some keywords are also used as function names (int, float...)
# and some variables are also functions (frameRate...).
# TEXT - LITERALS
# Literal strings and chars
editor.literal1.style = #8000FF,plain
# p5 built in variables: e.g. mouseX, width, pixels, frameCount...
# and constants: e.g. RGB, TWO_PI
editor.literal2.style = #FF8855,plain
# e.g. + - = /
# (doesn't work!)
editor.operator.style = #FF0000,plain
# for words followed by a colon (goto labels)
editor.label.style = #F00080,bold
# TEXT - COMMENTS
# Block and line comments
editor.comment1.style = #7070A0,plain
# Doc comments /** */
editor.comment2.style = #0000A0,plain