Skip to content

Commit 52a1a9c

Browse files
committed
New colors for text editor
1 parent f738716 commit 52a1a9c

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

generate/keywords_base.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# KEY 2.0b7+
22

33
# LITERAL2 - Constants (QUARTER_PI, CORNERS, etc.)
4-
# KEYWORD1 - Java datatypes and keywords (void, int, boolean, etc.)
4+
# KEYWORD1 - Datatypes and keywords (void, int, boolean, etc.)
55
# KEYWORD2 - Fields [variables within a class]
66
# KEYWORD3 - Processing variables (width, height, focused, etc.)
77
# FUNCTION1 - Functions
@@ -339,6 +339,11 @@ addChild FUNCTION1
339339
; semicolon
340340
-= subtractassign
341341

342+
# Suppressed from Generate to avoid conflicts with variables inside methods
343+
344+
width KEYWORD3 width_
345+
height KEYWORD3 height_
346+
342347

343348
# THE TEXT ABOVE IS HAND-WRITTEN AND FOUND IN THE FILE "keywords_base.txt"
344349
# THE TEXT BELOW IS AUTO-GENERATED

generate/keywords_create.cgi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ foreach $temp (@tempfiles) {
3737
if($temp =~ ".xml" && !($temp =~ "~")) {
3838
get_data("$temp");
3939
$tempname = strip_name($name);
40-
#$namelength = length($tempname);
41-
if ($tempname ne "x" && $tempname ne "y" && $tempname ne "z" && $tempname ne "") {
42-
#if ($tempname ne "") {
40+
41+
# 29 Nov. Because the PDE can't differentiate between variables inside a class
42+
# or the main Processing variables, we leave these out of the generated reference
43+
if ($tempname ne "x" && $tempname ne "y" && $tempname ne "z" &&
44+
$tempname ne "width" && $tempname ne "height" && $tempname ne "") {
4345
push(@modfiles, strip_name($name) . "\t" . set_category() . "\t" . file_name_convert($temp));
4446
}
4547
}

0 commit comments

Comments
 (0)