Added separate highlighting keys for variables invoked as function and function-like.

This commit is contained in:
Evgeny Gerashchenko
2013-04-03 20:32:12 +04:00
parent a6293e10d9
commit f53af70ad6
5 changed files with 77 additions and 24 deletions
@@ -7,7 +7,7 @@ val <info>property</info> = {}
fun foo(param: (Int) -> Int, functionLike: FunctionLike) {
<info descr="Calling parameter as function">param</info>(1)
<info descr="Calling parameter as function">functionLike</info>()
<info descr="Calling parameter as function-like">functionLike</info>()
val v1 = param
var v2 = param
@@ -15,5 +15,7 @@ fun foo(param: (Int) -> Int, functionLike: FunctionLike) {
<info descr="Calling variable as function">v1</info>(1)
<info descr="Calling variable as function">v2</info>(1)
<info descr="Calling property as function">property</info>()
<info descr="Calling property as function">property</info>();
{}() //should not be highlighted as "calling variable as function"
}