Syntax highlight for Kotlin-script files in Idea

Viewed 961

I migrated my Gradle project config for Kotlin-script usage: now I have both build.gradle and build.gradle.kts and can switch between them configuring settings.gradle:

project(':myProject').buildFileName='build.gradle.kts'

The issue is kts build.gradle.kts is not properly highlited: it does not resolve dependencies, says version = 123 is not a valid word and so on.

I use Idea Ultimate 2017.1.3 and kotlin-plugin 1.1.2. What's the issue? Deleting build.gradle doesn't help either.

gradle-script-kotlin project files are highlited correctly.

1 Answers
Related