Fix nested intros colourizing themselves
This commit is contained in:
parent
82dad4d971
commit
cf89dfe38b
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue