Insert int after color instead of before to allow visiblity modifier.

This commit is contained in:
A Pottinger
2020-06-29 15:17:44 -07:00
parent 3cd8898bad
commit bc434fce0b
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);
}
}