Merge pull request #105 from processing/fix_color_return

Insert int after color instead of before to allow visibility modifier.
This commit is contained in:
Ben Fry
2020-08-15 08:57:20 -04:00
committed by GitHub
4 changed files with 63 additions and 1 deletions

View File

@@ -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);
}
}