Skip to content

Commit b3dcfe7

Browse files
committed
Keyword color alteration, getting closer
1 parent ea54e30 commit b3dcfe7

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

content/api_en/PShape.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,6 @@ Datatype for storing shapes. Processing can currently load and display SVG (Scal
5252
The <b>loadShape()</b> function supports SVG files created with Inkscape and Adobe Illustrator. It is not a full SVG implementation, but offers some straightforward support for handling vector data.
5353
]]></description>
5454

55+
<type>class</type>
56+
5557
</root>

generate/keywords_base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ WHITESPACE LITERAL2
170170

171171
abstract KEYWORD1
172172
assert KEYWORD1
173-
boolean KEYWORD1 boolean
174173
break KEYWORD1 break
175174
case KEYWORD1 case
176175
class KEYWORD1 class
@@ -222,6 +221,7 @@ PrintWriter KEYWORD5 PrintWriter
222221
String KEYWORD5 String
223222
StringBuffer KEYWORD5
224223
Thread KEYWORD5
224+
boolean KEYWORD5 boolean
225225
byte KEYWORD5 byte
226226
char KEYWORD5 char
227227
double KEYWORD5 double

generate/keywords_create.cgi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,17 @@ sub set_category
162162
# $category = "KEYWORD3";
163163
#}
164164

165+
$lc_type = lc($type);
166+
165167
if ($subcat =~ s/method/method/i) {
166168
$category = "FUNCTION2";
167169
} elsif($name eq $subcat) {
168-
$category = "KEYWORD1";
170+
$category = "KEYWORD5";
169171
} elsif($subcat =~ s/field/field/i) {
170172
$category = "KEYWORD2";
171173
} elsif($type eq "variable") {
172174
$category = "KEYWORD3";
173-
} elsif(($type eq "object") || ($type eq "class")) {
175+
} elsif(($lc_type eq "object") || ($lc_type eq "class")) {
174176
$category = "KEYWORD5";
175177
} elsif ($cat =~ s/constants/constants/i) {
176178
$category = "LITERAL2";

0 commit comments

Comments
 (0)