Skip to content

Commit de24ce7

Browse files
committed
More
1 parent 51f0ea1 commit de24ce7

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ repositories {
4242

4343
dependencies {
4444
compileOnly(kotlin("compiler-embeddable", kotlinVersion))
45-
val version = "efb0f52d89"
45+
val version = "45252cb97a"
4646
compileOnly(group = "com.github.ice1000.dev-kt", name = "common", version = version)
4747
runtime(group = "com.github.ice1000.dev-kt", name = "swing", version = version)
4848
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/org/covscript/devkt/lang/cov-devkt.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import org.ice1000.devkt.ASTToken
66
import org.ice1000.devkt.openapi.*
77
import org.ice1000.devkt.openapi.ui.IconLoader
88
import org.ice1000.devkt.openapi.util.CompletionElement
9+
import org.ice1000.devkt.ui.DevKtDocumentHandler
910
import org.jetbrains.kotlin.com.intellij.psi.PsiElement
1011
import org.jetbrains.kotlin.com.intellij.psi.tree.IElementType
1112
import javax.swing.Icon
@@ -57,7 +58,9 @@ class CovScript<TextAttributes> : ExtendedDevKtLanguage<TextAttributes>(
5758
"extends"
5859
).mapTo(HashSet()) {
5960
CompletionElement(it, type = "Keyword")
60-
} + CompletionElement("system.out.println", "sout")
61+
} + listOf(object : CompletionElement("system.out.println", "sout") {
62+
override fun afterInsert(documentHandler: DevKtDocumentHandler<*>) = documentHandler.insert("(")
63+
})
6164

6265
override fun invokeAutoPopup(currentElement: ASTToken, inputString: String): Boolean {
6366
return inputString == ">" || super.invokeAutoPopup(currentElement, inputString)

0 commit comments

Comments
 (0)