aboutsummaryrefslogtreecommitdiff
path: root/src/Languages
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-15 18:23:15 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-15 18:23:15 +0400
commitfb41c698ae26774e6bf71a0ed49b46c57c4023a9 (patch)
treea59f30756c79fad626770d9a32b97c49c14f9ef9 /src/Languages
parenteebfdd41acc897ba9177f1c8daa428a079c8e99f (diff)
downloaddokka-fb41c698ae26774e6bf71a0ed49b46c57c4023a9.tar.gz
dokka-fb41c698ae26774e6bf71a0ed49b46c57c4023a9.tar.bz2
dokka-fb41c698ae26774e6bf71a0ed49b46c57c4023a9.zip
Improve rendering of lambdas, escape html symbols.
Diffstat (limited to 'src/Languages')
-rw-r--r--src/Languages/KotlinLanguageService.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Languages/KotlinLanguageService.kt b/src/Languages/KotlinLanguageService.kt
index 7ae043b0..0b6ae11d 100644
--- a/src/Languages/KotlinLanguageService.kt
+++ b/src/Languages/KotlinLanguageService.kt
@@ -41,11 +41,11 @@ class KotlinLanguageService : LanguageService {
if (node.name == "Function${typeArguments.count() - 1}") {
// lambda
- return "(${renders.take(renders.size - 1).join()})->${renders.last()}"
+ return "(${renders.take(renders.size - 1).join()}) -> ${renders.last()}"
}
if (node.name == "ExtensionFunction${typeArguments.count() - 2}") {
// extension lambda
- return "${renders.first()}.(${renders.drop(1).take(renders.size - 2).join()})->${renders.last()}"
+ return "${renders.first()}.(${renders.drop(1).take(renders.size - 2).join()}) -> ${renders.last()}"
}
if (typeArguments.none())
return node.name