AtomMaterialUI/color-highlighter

Reference to Kotlin variables, function arguments, and named parameters are always colored

Closed this issue · 1 comments

Describe the bug

References to function variables, function arguments, and named parameters are always colored.

fun Color(
    red: Float,
    green: Float,
    blue: Float,
    alpha: Float = 1f,
) {
    println("red = $red") // `$red` is colored
}

fun main() {
    Color(
        red = 1, // `red` is colored
    )
}

It does not make sense that the variables are colored.

Disabling 'Detect Color Properties' doesn't help.

To Reproduce

  1. Create a Kotlin project
  2. Paste the above code
  3. References are colored

Expected Behavior

References are not colored.

Environment

  • Plugin version: 14.0.0
  • IDEA: Build #IU-223.8214.52, built on December 20, 2022

Screenshots

image

I don't have the time to improve this project. If you wish to help, be my guest.