Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Build Systems/Processing.sublime-build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"selector": "source.pde",
"cmd": ["processing-java", "--sketch=$file_path", "--output=$file_path/build-tmp", "--run", "--force"],
"cmd": ["processing-java", "--force", "--sketch=$file_path", "--output=$file_path/build-tmp", "--run"],
"file_regex": "^(...*?):([0-9]*)",
"encoding": "ISO8859-1",

Expand All @@ -10,27 +10,27 @@
// Close old sketch on build.
"name": "Re-run sketch" ,
"windows": {
"shell_cmd": "wmic process where \"Caption Like '%java.exe%' AND CommandLine Like '%$file_base_name%'\" call terminate 1>nul && processing-java --sketch=\"$file_path\" --output=\"$file_path/build-tmp\" --run --force"
"shell_cmd": "wmic process where \"Caption Like '%java.exe%' AND CommandLine Like '%$file_base_name%'\" call terminate 1>nul && processing-java --force --sketch=\"$file_path\" --output=\"$file_path/build-tmp\" --run"
},

"osx": {
"shell_cmd": "pkill -f $file_base_name; processing-java --sketch=\"$file_path\" --output=\"$file_path/build-tmp\" --run --force"
"shell_cmd": "pkill -f $file_base_name; processing-java --force --sketch=\"$file_path\" --output=\"$file_path/build-tmp\" --run"
},

"linux": {
"shell_cmd": "pkill -f \"java.*$file_path\\$\"; processing-java --sketch=\"$file_path\" --output=\"$file_path/build-tmp\" --run --force"
"shell_cmd": "pkill -f \"java.*$file_path\\$\"; processing-java --force --sketch=\"$file_path\" --output=\"$file_path/build-tmp\" --run"
}
},

{ "cmd": ["processing-java", "--sketch=$file_path", "--run", "--force"],
{ "cmd": ["processing-java", "--force", "--sketch=$file_path", "--run"],
"name": "Run sketch (Processing 3 only)"
},

{ "cmd": ["processing-java", "--sketch=$file_path", "--output=$file_path/build-tmp", "--present", "--force"],
{ "cmd": ["processing-java", "--force", "--sketch=$file_path", "--output=$file_path/build-tmp", "--present"],
"name": "Run sketch fullscreen"
},

{ "cmd": ["processing-java", "--sketch=$file_path", "--output=$file_path/application", "--export", "--force"],
{ "cmd": ["processing-java", "--force", "--sketch=$file_path", "--output=$file_path/application", "--export"],
"name": "Export sketch as application"
}
]
Expand Down
4 changes: 2 additions & 2 deletions Syntaxes/Processing.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@
<array>
<dict>
<key>match</key>
<string>\b(?:void|boolean|byte|char|short|int|float|long|double)(\[\])*\b</string>
<string>\b(?:void|boolean|byte|char|short|int|float|long|double|color)(\[\])*\b</string>
<key>name</key>
<string>storage.type.primitive.array.processing</string>
</dict>
Expand All @@ -1031,7 +1031,7 @@
<array>
<dict>
<key>match</key>
<string>\b(?:void|boolean|byte|char|short|int|float|long|double)\b</string>
<string>\b(?:void|boolean|byte|char|short|int|float|long|double|color)\b</string>
<key>name</key>
<string>storage.type.primitive.processing</string>
</dict>
Expand Down