Skip to content

Commit 34cf13e

Browse files
committed
Resolve processing#521 (color in qualifiedname for EDT)
1 parent b8988b8 commit 34cf13e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/src/processing/mode/java/preproc/PdeParseTreeListener.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,8 @@ public void exitFunctionWithPrimitiveTypeName(
635635
* @param ctx ANTLR context for the type token.
636636
*/
637637
public void exitColorPrimitiveType(ProcessingParser.ColorPrimitiveTypeContext ctx) {
638-
if (ctx.getText().equals("color")) {
638+
boolean isQualifiedName = ctx.getParent() instanceof ProcessingParser.QualifiedNameContext;
639+
if (ctx.getText().equals("color") && !isQualifiedName) {
639640
insertAfter(ctx.stop, "int");
640641
delete(ctx.start, ctx.stop);
641642
}

0 commit comments

Comments
 (0)