Fix nested intros colourizing themselves

This commit is contained in:
Alwinfy 2022-05-23 16:48:48 -04:00
parent 82dad4d971
commit cf89dfe38b
No known key found for this signature in database
GPG key ID: 2CCB99445F0C949E

View file

@ -260,7 +260,7 @@ class CastingHarness private constructor(
this.getFunctionalData().copy(
parenthesized = newParens,
parenCount = this.parenCount + 1
) to ResolvedPatternType.OK
) to if (this.parenCount == 0) ResolvedPatternType.OK else ResolvedPatternType.PATTERN
} else if (operator == Widget.CLOSE_PAREN) {
val newParenCount = this.parenCount - 1
if (newParenCount == 0) {