Squircle-CE icon indicating copy to clipboard operation
Squircle-CE copied to clipboard

Kotlin syntax highlighting ---- extention function

Open yvvt0379 opened this issue 4 years ago • 0 comments

Please consider making a Pull Request if you are capable of doing so.

App Version: 2021.1.3 Standard Edition

Affected Device(s): Huawei Changxiang 10e with Android 10

Describe the bug In kotlin, you can write like this: fun ClassName.functionName(parameters: Types) {...}, and you can go to https://kotlinlang.org/docs/extensions.html to see more info about it. When I write a extention function, it is ClassName, not functionName, that is highlighted.

To Reproduce Steps to reproduce the behavior:

  1. Create a kotlin file (.kt)
  2. Write an extentiontion function as I mentioned above
  3. See how it's highlighted

Expected behavior According to the syntax about extention function, it's functionName, rather than ClassName, that should be highlighted.

yvvt0379 avatar Jun 11 '21 00:06 yvvt0379