mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +01:00
Insert int after color instead of before to allow visiblity modifier.
This commit is contained in:
@@ -542,7 +542,7 @@ public class PdeParseTreeListener extends ProcessingBaseListener {
|
||||
*/
|
||||
public void exitColorPrimitiveType(ProcessingParser.ColorPrimitiveTypeContext ctx) {
|
||||
if (ctx.getText().equals("color")) {
|
||||
insertBefore(ctx.start, "int");
|
||||
insertAfter(ctx.stop, "int");
|
||||
delete(ctx.start, ctx.stop);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user